aboutsummaryrefslogtreecommitdiff
path: root/src/mobile/MobileInterface.tsx
diff options
context:
space:
mode:
authorkimdahey <claire_kim1@brown.edu>2020-02-12 21:26:19 -0500
committerkimdahey <claire_kim1@brown.edu>2020-02-12 21:26:19 -0500
commit0299ecb4db88560fe623b429f36191402c00b264 (patch)
treea542c2787ffafdf639000b5df0dbf60c4517316b /src/mobile/MobileInterface.tsx
parent6edcf16fff7461e12800a6619488205a5c420470 (diff)
changed priority of mobile iframe selection from text to image
Diffstat (limited to 'src/mobile/MobileInterface.tsx')
-rw-r--r--src/mobile/MobileInterface.tsx25
1 files changed, 18 insertions, 7 deletions
diff --git a/src/mobile/MobileInterface.tsx b/src/mobile/MobileInterface.tsx
index 0c2ed8156..5d3a517ae 100644
--- a/src/mobile/MobileInterface.tsx
+++ b/src/mobile/MobileInterface.tsx
@@ -38,6 +38,7 @@ import { DocumentManager } from '../client/util/DocumentManager';
import RichTextMenu from '../client/util/RichTextMenu';
import { WebField } from "../new_fields/URLField";
import { FieldResult } from "../new_fields/Doc";
+import { List } from '../new_fields/List';
library.add(faLongArrowAltLeft);
@@ -252,18 +253,28 @@ export default class MobileInterface extends React.Component {
Docs.Create.WebDocument(url, { _width: 300, _height: 300, title: "Mobile Upload Web Doc" });
}
+ clearUpload = async () => {
+ if (this.mainContainer) {
+ const data = Cast(this.mainContainer.data, listSpec(Doc));
+ if (data) {
+ const collectionDoc = await data[1];
+ const children = DocListCast(collectionDoc.data);
+ children.forEach(doc => {
+ });
+ // collectionDoc[data] = new List<Doc>();
+ }
+ }
+ }
+
renderUploadContent() {
if (this.mainContainer) {
return (
<div className="mobileInterface" onDragOver={this.onDragOver}>
<div className="mobileInterface-inkInterfaceButtons">
- <div className="navButtons">
- <button className="mobileInterface-button cancel" onClick={this.onBack} title="Back">BACK</button>
- </div>
- <div className="uploadSettings">
- {/* <button className="mobileInterface-button" onClick={this.addWeb} title="Add Web Doc to Upload Collection"></button> */}
- <button className="mobileInterface-button" onClick={this.upload} title="Upload">UPLOAD</button>
- </div>
+ <button className="mobileInterface-button cancel" onClick={this.onBack} title="Back">BACK</button>
+ {/* <button className="mobileInterface-button" onClick={this.clearUpload} title="Clear Upload">CLEAR</button> */}
+ {/* <button className="mobileInterface-button" onClick={this.addWeb} title="Add Web Doc to Upload Collection"></button> */}
+ <button className="mobileInterface-button" onClick={this.upload} title="Upload">UPLOAD</button>
</div>
<DocumentView
Document={this.mainContainer}