Remove unused

This commit is contained in:
Julia.Radzhabova
2025-09-11 17:40:30 +03:00
parent eede48adfd
commit d00a5c72b9
18 changed files with 9 additions and 111 deletions

View File

@ -533,7 +533,7 @@
"criticalErrorTitle": "Error",
"errorAccessDeny": "You are trying to perform an action you do not have rights for.<br>Please, contact your administrator.",
"errorOpensource": "Using the free Community version, you can open documents for viewing only. To access mobile web editors, a commercial license is required.",
"errorProcessSaveResult": "Saving failed.",
"del_errorProcessSaveResult": "Saving failed.",
"errorServerVersion": "The editor version has been updated. The page will be reloaded to apply the changes.",
"errorUpdateVersion": "The file version has been changed. The page will be reloaded.",
"leavePageText": "You have unsaved changes. Click 'Stay on this Page' to wait for autosave. Click 'Leave this Page' to discard all the unsaved changes.",

View File

@ -402,7 +402,6 @@ class MainController extends Component {
Common.Notifications.trigger('api:disconnect');
}
Common.Gateway.on('processsaveresult', this.onProcessSaveResult.bind(this));
Common.Gateway.on('processrightschange', this.onProcessRightsChange.bind(this));
Common.Gateway.on('downloadas', this.onDownloadAs.bind(this));
Common.Gateway.on('requestclose', this.onRequestClose.bind(this));
@ -1236,20 +1235,6 @@ class MainController extends Component {
else Common.Notifications.trigger('openPdfDropdownList', obj);
}
onProcessSaveResult (data) {
this.api.asc_OnSaveEnd(data.result);
if (data && data.result === false) {
const { t } = this.props;
const _t = t('Main', {returnObjects:true});
f7.dialog.alert(
(!data.message) ? _t.errorProcessSaveResult : data.message,
_t.criticalErrorTitle
);
}
}
onProcessRightsChange (data) {
if (data && data.enabled === false) {
const appOptions = this.props.storeAppOptions;