[PE SSE mobile] Fix appOptions

This commit is contained in:
JuliaSvinareva 2021-04-29 19:08:58 +03:00
parent 5832ba5551
commit 5e3730d416
2 changed files with 18 additions and 2 deletions

View file

@ -6,7 +6,10 @@ export class storeAppOptions {
isEdit: observable,
canViewComments: observable,
setConfigOptions: action,
setPermissionOptions: action
setPermissionOptions: action,
lostEditingRights: observable,
changeEditingRights: action
});
}
@ -14,6 +17,11 @@ export class storeAppOptions {
canViewComments = false;
config = {};
lostEditingRights = false;
changeEditingRights (value) {
this.lostEditingRights = value;
}
setConfigOptions (config) {
this.config = config;
this.user = Common.Utils.fillUserInfo(config.user, config.lang, "Local.User"/*me.textAnonymous*/);

View file

@ -6,7 +6,10 @@ export class storeAppOptions {
isEdit: observable,
canViewComments: observable,
setConfigOptions: action,
setPermissionOptions: action
setPermissionOptions: action,
lostEditingRights: observable,
changeEditingRights: action
});
}
@ -14,6 +17,11 @@ export class storeAppOptions {
config = {};
canViewComments = false;
lostEditingRights = false;
changeEditingRights (value) {
this.lostEditingRights = value;
}
setConfigOptions (config, _t) {
this.config = config;
this.customization = config.customization;