mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
Remove unused
This commit is contained in:
@ -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.",
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user