-
);
}
@@ -708,8 +727,27 @@ export class MobileInterface extends React.Component {
e.stopPropagation();
}
- uploadToCurrentCollection = (doc: Doc) => {
+ uploadImageButton = () => {
+ if (this._activeDoc.type === "collection" && this._activeDoc !== this._homeDoc && this._activeDoc._viewType !== "docking" && this._activeDoc.title !== "WORKSPACES") {
+ return
+
+
+ }
+ }
+ switchToMobileUploads = () => {
+ if (this._activeDoc.title !== "Presentation") {
+ this._parents.push(this._activeDoc);
+ }
+ const mobileUpload = Cast(Doc.UserDoc().rightSidebarCollection, Doc) as Doc;
+ console.log(mobileUpload.title);
+ this._activeDoc = mobileUpload;
+ this.switchCurrentView((userDoc: Doc) => mobileUpload);
+ this._homeMenu = false;
}
render() {
@@ -718,14 +756,17 @@ export class MobileInterface extends React.Component {
{this.uploadImage()}
+
{this.switchMenuView()}
{this.inkMenu()}
+ {this.uploadImageButton()}
{this.pinToPresentation()}
{this.downloadDocument()}
{this.drawInk()}
{this.uploadAudioButton()}
+
{this.displayWorkspaces()}
@@ -746,3 +787,4 @@ Scripting.addGlobal(function openMobileAudio() { return MobileInterface.Instance
Scripting.addGlobal(function openMobileSettings() { return SettingsManager.Instance.open(); });
Scripting.addGlobal(function switchToLibrary() { return MobileInterface.Instance.switchToLibrary(); });
Scripting.addGlobal(function uploadImageMobile() { return MobileInterface.Instance.toggleUpload(); });
+Scripting.addGlobal(function switchToMobileUploads() { return MobileInterface.Instance.switchToMobileUploads(); });
--
cgit v1.2.3-70-g09d2