Merge pull request #1327 from ONLYOFFICE/feature/bug-fixes
[SSE mobile] Fix Bug 53686
This commit is contained in:
commit
36ae2eeb07
|
@ -87,6 +87,8 @@ const CellEditorView = props => {
|
||||||
const isPhone = Device.isPhone;
|
const isPhone = Device.isPhone;
|
||||||
const storeAppOptions = props.storeAppOptions;
|
const storeAppOptions = props.storeAppOptions;
|
||||||
const storeFunctions = props.storeFunctions;
|
const storeFunctions = props.storeFunctions;
|
||||||
|
const storeWorksheets = props.storeWorksheets;
|
||||||
|
const wsLock = storeWorksheets.wsLock;
|
||||||
const {functionsDisable} = props.storeFocusObjects;
|
const {functionsDisable} = props.storeFocusObjects;
|
||||||
const functions = storeFunctions.functions;
|
const functions = storeFunctions.functions;
|
||||||
const isEdit = storeAppOptions.isEdit;
|
const isEdit = storeAppOptions.isEdit;
|
||||||
|
@ -101,7 +103,7 @@ const CellEditorView = props => {
|
||||||
<View id="idx-celleditor" style={viewStyle} routes={routes} className={expanded ? 'cell-editor expanded' : 'cell-editor collapsed'}>
|
<View id="idx-celleditor" style={viewStyle} routes={routes} className={expanded ? 'cell-editor expanded' : 'cell-editor collapsed'}>
|
||||||
<div id="box-cell-name" className="ce-group">
|
<div id="box-cell-name" className="ce-group">
|
||||||
<span id="idx-cell-name">{props.cellName}</span>
|
<span id="idx-cell-name">{props.cellName}</span>
|
||||||
<a href="#" id="idx-btn-function" className='link icon-only' disabled={(!isEdit && true) || props.stateFunctions || functionsDisable} onClick={() => {props.onClickToOpenAddOptions('function', '#idx-btn-function');}}>
|
<a href="#" id="idx-btn-function" className='link icon-only' disabled={(!isEdit && true) || props.stateFunctions || functionsDisable || wsLock} onClick={() => {props.onClickToOpenAddOptions('function', '#idx-btn-function');}}>
|
||||||
<i className="icon icon-function" />
|
<i className="icon icon-function" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -155,4 +157,4 @@ const routes = [
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
export default inject("storeAppOptions", "storeFunctions", "storeFocusObjects")(observer(CellEditorView));
|
export default inject("storeAppOptions", "storeFunctions", "storeFocusObjects", "storeWorksheets")(observer(CellEditorView));
|
||||||
|
|
Loading…
Reference in a new issue