[PE mobile] Fix context menu
This commit is contained in:
parent
465fd40004
commit
4660a3ddcd
|
@ -157,7 +157,7 @@ class ContextMenu extends ContextMenuController {
|
|||
const { t } = this.props;
|
||||
const _t = t("ContextMenu", { returnObjects: true });
|
||||
|
||||
const { isEdit, canViewComments, canReview, isDisconnected } = this.props;
|
||||
const { isEdit, canViewComments, isDisconnected } = this.props;
|
||||
|
||||
const api = Common.EditorApi.get();
|
||||
const stack = api.getSelectedElements();
|
||||
|
@ -264,7 +264,7 @@ class ContextMenu extends ContextMenuController {
|
|||
});
|
||||
}
|
||||
|
||||
var hideAddComment = (isText && isChart) || api.can_AddQuotedComment() === false || !canViewComments;
|
||||
const hideAddComment = (isText && isChart) || api.can_AddQuotedComment() === false || !canViewComments;
|
||||
if (!hideAddComment) {
|
||||
itemsText.push({
|
||||
caption: _t.menuAddComment,
|
||||
|
|
|
@ -4,12 +4,14 @@ export class storeAppOptions {
|
|||
constructor() {
|
||||
makeObservable(this, {
|
||||
isEdit: observable,
|
||||
canViewComments: observable,
|
||||
setConfigOptions: action,
|
||||
setPermissionOptions: action
|
||||
});
|
||||
}
|
||||
|
||||
isEdit = false;
|
||||
canViewComments = false;
|
||||
config = {};
|
||||
|
||||
setConfigOptions (config) {
|
||||
|
|
Loading…
Reference in a new issue