Fix updating file: check onOutdatedVersion event

This commit is contained in:
Julia Radzhabova
2024-12-24 18:41:08 +03:00
parent a960cc2bf4
commit ee845aebff
12 changed files with 21 additions and 11 deletions

View File

@ -527,6 +527,7 @@ class MainController extends Component {
this.needToUpdateVersion = true;
Common.Notifications.trigger('preloader:endAction', Asc.c_oAscAsyncActionType['BlockInteraction'], this.LoadingDocument);
Common.Notifications.trigger('preloader:endAction', Asc.c_oAscAsyncActionType['BlockInteraction'], Asc.c_oAscAsyncAction['Open']);
f7.dialog.alert(
_t.errorUpdateVersion,
@ -536,8 +537,9 @@ class MainController extends Component {
if (callback) {
callback.call(this);
}
Common.Notifications.trigger('preloader:beginAction', Asc.c_oAscAsyncActionType['BlockInteraction'], this.LoadingDocument);
this.editorConfig && this.editorConfig.canUpdateVersion && Common.Notifications.trigger('preloader:beginAction', Asc.c_oAscAsyncActionType['BlockInteraction'], this.LoadingDocument);
});
Common.Notifications.trigger('api:disconnect');
}
onServerVersion (buildVersion) {