[SSE mobile] Fix Bug 47962
This commit is contained in:
parent
d5e1aa57e9
commit
daa60bdd88
|
@ -71,7 +71,8 @@ export class storeAppOptions {
|
||||||
}
|
}
|
||||||
|
|
||||||
setPermissionOptions (document, licType, params, permissions, isSupportEditFeature) {
|
setPermissionOptions (document, licType, params, permissions, isSupportEditFeature) {
|
||||||
permissions.edit = params.asc_getRights() !== Asc.c_oRights.Edit ? false : true;
|
if (params.asc_getRights() !== Asc.c_oRights.Edit)
|
||||||
|
permissions.edit = false;
|
||||||
this.canAutosave = true;
|
this.canAutosave = true;
|
||||||
this.canAnalytics = params.asc_getIsAnalyticsEnable();
|
this.canAnalytics = params.asc_getIsAnalyticsEnable();
|
||||||
this.canLicense = (licType === Asc.c_oLicenseResult.Success || licType === Asc.c_oLicenseResult.SuccessLimit);
|
this.canLicense = (licType === Asc.c_oLicenseResult.Success || licType === Asc.c_oLicenseResult.SuccessLimit);
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { Input, View, Button, Link } from 'framework7-react';
|
import { Input, View, Button, Link } from 'framework7-react';
|
||||||
|
import {observer, inject} from "mobx-react";
|
||||||
|
|
||||||
const viewStyle = {
|
const viewStyle = {
|
||||||
height: 30
|
height: 30
|
||||||
|
@ -12,6 +13,8 @@ const contentStyle = {
|
||||||
|
|
||||||
const CellEditorView = props => {
|
const CellEditorView = props => {
|
||||||
const [expanded, setExpanded] = useState(false);
|
const [expanded, setExpanded] = useState(false);
|
||||||
|
const storeAppOptions = props.storeAppOptions;
|
||||||
|
const isEdit = storeAppOptions.isEdit;
|
||||||
|
|
||||||
const expandClick = e => {
|
const expandClick = e => {
|
||||||
setExpanded(!expanded);
|
setExpanded(!expanded);
|
||||||
|
@ -20,7 +23,7 @@ const CellEditorView = props => {
|
||||||
return <View id="idx-celleditor" style={viewStyle} className={expanded?'expanded':'collapsed'}>
|
return <View id="idx-celleditor" style={viewStyle} className={expanded?'expanded':'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" onClick={() => {props.onClickToOpenAddOptions('function', '#idx-btn-function');}}>
|
<a href="#" id="idx-btn-function" className='link icon-only' disabled={!isEdit && true} onClick={() => {props.onClickToOpenAddOptions('function', '#idx-btn-function');}}>
|
||||||
<i className="icon icon-function" />
|
<i className="icon icon-function" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -33,4 +36,4 @@ const CellEditorView = props => {
|
||||||
</View>;
|
</View>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default CellEditorView;
|
export default inject("storeAppOptions")(observer(CellEditorView));
|
||||||
|
|
Loading…
Reference in a new issue