diff --git a/apps/spreadsheeteditor/mobile/src/controller/add/Add.jsx b/apps/spreadsheeteditor/mobile/src/controller/add/Add.jsx
new file mode 100644
index 0000000000..16be3f3661
--- /dev/null
+++ b/apps/spreadsheeteditor/mobile/src/controller/add/Add.jsx
@@ -0,0 +1,45 @@
+import React, { createContext } from "react";
+import AddView from "../../view/add/Add";
+
+export const AddingContext = createContext();
+
+const AddingController = props => {
+ const api = Common.EditorApi.get();
+ const cellinfo = api.asc_getCellInfo();
+ const seltype = cellinfo.asc_getSelectionType();
+ const iscelllocked = cellinfo.asc_getLocked();
+ const isAddShapeHyperlink = api.asc_canAddShapeHyperlink();
+ let options;
+
+ if(!iscelllocked) {
+ options = props.showOptions;
+
+ if(!options) {
+ switch(seltype) {
+ case Asc.c_oAscSelectionType.RangeCells:
+ case Asc.c_oAscSelectionType.RangeRow:
+ case Asc.c_oAscSelectionType.RangeCol:
+ case Asc.c_oAscSelectionType.RangeMax: break;
+ case Asc.c_oAscSelectionType.RangeImage:
+ case Asc.c_oAscSelectionType.RangeShape:
+ case Asc.c_oAscSelectionType.RangeChart:
+ case Asc.c_oAscSelectionType.RangeChartText:
+ case Asc.c_oAscSelectionType.RangeShapeText:
+ options = {panels: ['image','shape']};
+ break;
+ }
+ }
+ }
+
+ return (
+
+
+
+
+ )
+}
+
+export default AddingController;
\ No newline at end of file
diff --git a/apps/spreadsheeteditor/mobile/src/controller/add/AddChart.jsx b/apps/spreadsheeteditor/mobile/src/controller/add/AddChart.jsx
index b560d95199..42b9f4f2d0 100644
--- a/apps/spreadsheeteditor/mobile/src/controller/add/AddChart.jsx
+++ b/apps/spreadsheeteditor/mobile/src/controller/add/AddChart.jsx
@@ -43,8 +43,7 @@ class AddChartController extends Component {
render () {
return (
-
+
)
}
}
diff --git a/apps/spreadsheeteditor/mobile/src/controller/add/AddFunction.jsx b/apps/spreadsheeteditor/mobile/src/controller/add/AddFunction.jsx
index a6adeb1dad..7725cf180b 100644
--- a/apps/spreadsheeteditor/mobile/src/controller/add/AddFunction.jsx
+++ b/apps/spreadsheeteditor/mobile/src/controller/add/AddFunction.jsx
@@ -87,9 +87,7 @@ class AddFunctionController extends Component {
render () {
return (
-
+
)
}
}
diff --git a/apps/spreadsheeteditor/mobile/src/controller/add/AddLink.jsx b/apps/spreadsheeteditor/mobile/src/controller/add/AddLink.jsx
index 075f113631..08fc94bd05 100644
--- a/apps/spreadsheeteditor/mobile/src/controller/add/AddLink.jsx
+++ b/apps/spreadsheeteditor/mobile/src/controller/add/AddLink.jsx
@@ -141,7 +141,7 @@ class AddLinkController extends Component {
return (
!this.props.isNavigate ?
Device.phone ?
-