[DE] Handle ComplexFieldEmptyTOC error

This commit is contained in:
Julia Radzhabova 2022-03-14 14:44:08 +03:00
parent 19bfe820b9
commit 481151875d
2 changed files with 12 additions and 6 deletions

View file

@ -1866,24 +1866,24 @@ define([
config.msg = (this.appOptions.isDesktopApp && this.appOptions.isOffline) ? this.errorEditingSaveas : this.errorEditingDownloadas;
break;
case Asc.c_oAscError.ID.MailToClientMissing:
case Asc.c_oAscError.ID.MailToClientMissing:
config.msg = this.errorEmailClient;
break;
case Asc.c_oAscError.ID.ConvertationOpenLimitError:
case Asc.c_oAscError.ID.ConvertationOpenLimitError:
config.msg = this.errorFileSizeExceed;
break;
case Asc.c_oAscError.ID.UpdateVersion:
case Asc.c_oAscError.ID.UpdateVersion:
config.msg = this.errorUpdateVersionOnDisconnect;
config.maxwidth = 600;
break;
case Asc.c_oAscError.ID.DirectUrl:
case Asc.c_oAscError.ID.DirectUrl:
config.msg = this.errorDirectUrl;
break;
case Asc.c_oAscError.ID.CannotCompareInCoEditing:
case Asc.c_oAscError.ID.CannotCompareInCoEditing:
config.msg = this.errorCompare;
break;
@ -1903,6 +1903,10 @@ define([
config.msg = this.errorLoadingFont;
break;
case Asc.c_oAscError.ID.ComplexFieldEmptyTOC:
config.msg = this.errorEmptyTOC;
break;
default:
config.msg = (typeof id == 'string') ? id : this.errorDefaultMessage.replace('%1', id);
break;
@ -3130,7 +3134,8 @@ define([
textDisconnect: 'Connection is lost',
textReconnect: 'Connection is restored',
errorLang: 'The interface language is not loaded.<br>Please contact your Document Server administrator.',
errorLoadingFont: 'Fonts are not loaded.<br>Please contact your Document Server administrator.'
errorLoadingFont: 'Fonts are not loaded.<br>Please contact your Document Server administrator.',
errorEmptyTOC: 'There\'s no table of contents to update. You can insert one from the References tab.'
}
})(), DE.Controllers.Main || {}))
});

View file

@ -564,6 +564,7 @@
"DE.Controllers.Main.errorUserDrop": "The file cannot be accessed right now.",
"DE.Controllers.Main.errorUsersExceed": "The number of users allowed by the pricing plan was exceeded",
"DE.Controllers.Main.errorViewerDisconnect": "Connection is lost. You can still view the document,<br>but will not be able to download or print it until the connection is restored and page is reloaded.",
"DE.Controllers.Main.errorEmptyTOC": "There's no table of contents to update. You can insert one from the References tab.",
"DE.Controllers.Main.leavePageText": "You have unsaved changes in this document. Click \"Stay on This Page\", then \"Save\" to save them. Click \"Leave This Page\" to discard all the unsaved changes.",
"DE.Controllers.Main.leavePageTextOnClose": "All unsaved changes in this document will be lost.<br> Click \"Cancel\" then \"Save\" to save them. Click \"OK\" to discard all the unsaved changes.",
"DE.Controllers.Main.loadFontsTextText": "Loading data...",