diff options
Diffstat (limited to 'src/mobile/MobileInterface.tsx')
-rw-r--r-- | src/mobile/MobileInterface.tsx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mobile/MobileInterface.tsx b/src/mobile/MobileInterface.tsx index 036738b9e..cfcc48608 100644 --- a/src/mobile/MobileInterface.tsx +++ b/src/mobile/MobileInterface.tsx @@ -16,7 +16,7 @@ import * as React from "react"; import { Docs, DocumentOptions, DocUtils } from '../client/documents/Documents'; import { DocumentType } from "../client/documents/DocumentTypes"; import { CurrentUserUtils } from '../client/util/CurrentUserUtils'; -import { Scripting } from '../client/util/Scripting'; +import { ScriptingGlobals } from '../client/util/ScriptingGlobals'; import { SettingsManager, ColorScheme } from '../client/util/SettingsManager'; import { Transform } from '../client/util/Transform'; import { UndoManager } from "../client/util/UndoManager"; @@ -669,19 +669,19 @@ export class MobileInterface extends React.Component { //Global functions for mobile menu -Scripting.addGlobal(function switchToMobileLibrary() { return MobileInterface.Instance.switchToLibrary(); }, +ScriptingGlobals.add(function switchToMobileLibrary() { return MobileInterface.Instance.switchToLibrary(); }, "opens the library to navigate through dashboards on Dash Mobile"); -Scripting.addGlobal(function openMobileUploads() { return MobileInterface.Instance.toggleUpload(); }, +ScriptingGlobals.add(function openMobileUploads() { return MobileInterface.Instance.toggleUpload(); }, "opens the upload files menu for Dash Mobile"); -Scripting.addGlobal(function switchToMobileUploadCollection() { return MobileInterface.Instance.switchToMobileUploads(); }, +ScriptingGlobals.add(function switchToMobileUploadCollection() { return MobileInterface.Instance.switchToMobileUploads(); }, "opens the mobile uploads collection on Dash Mobile"); -Scripting.addGlobal(function openMobileAudio() { return MobileInterface.Instance.toggleAudio(); }, +ScriptingGlobals.add(function openMobileAudio() { return MobileInterface.Instance.toggleAudio(); }, "opens the record and dictate menu on Dash Mobile"); -Scripting.addGlobal(function switchToMobilePresentation() { return MobileInterface.Instance.setupDefaultPresentation(); }, +ScriptingGlobals.add(function switchToMobilePresentation() { return MobileInterface.Instance.setupDefaultPresentation(); }, "opens the presentation on Dash Mobile"); -Scripting.addGlobal(function openMobileSettings() { return SettingsManager.Instance.open(); }, +ScriptingGlobals.add(function openMobileSettings() { return SettingsManager.Instance.open(); }, "opens settings on Dash Mobile"); // Other global functions for mobile -Scripting.addGlobal(function switchMobileView(doc: Doc, renderView?: () => JSX.Element, onSwitch?: () => void) { return MobileInterface.Instance.switchCurrentView(doc, renderView, onSwitch); }, +ScriptingGlobals.add(function switchMobileView(doc: Doc, renderView?: () => JSX.Element, onSwitch?: () => void) { return MobileInterface.Instance.switchCurrentView(doc, renderView, onSwitch); }, "changes the active document displayed on the Dash Mobile", "(doc: any)");
\ No newline at end of file |