[DE] Handle ConvertationOpenFormat error

This commit is contained in:
Julia Radzhabova 2022-11-08 17:18:14 +03:00
parent d2e30f63e1
commit 142e295b70

View file

@ -1983,21 +1983,15 @@ define([
config.msg = this.errorPasswordIsNotCorrect;
break;
case Asc.c_oAscError.ID.InconsistentOpenError:
errData = {
get_Value: function() {
return 'xlsx';
}
}
case Asc.c_oAscError.ID.ConvertationOpenFormat:
config.maxwidth = 600;
var errvalue = errData ? errData.get_Value() : '';
if (errvalue === 'pdf')
if (errData === 'pdf')
config.msg = this.errorInconsistentExtPdf.replace('%1', this.document.fileType || '');
else if (errvalue === 'docx')
else if (errData === 'docx')
config.msg = this.errorInconsistentExtDocx.replace('%1', this.document.fileType || '');
else if (errvalue === 'xlsx')
else if (errData === 'xlsx')
config.msg = this.errorInconsistentExtXlsx.replace('%1', this.document.fileType || '');
else if (errvalue === 'pptx')
else if (errData === 'pptx')
config.msg = this.errorInconsistentExtPptx.replace('%1', this.document.fileType || '');
else
config.msg = this.errorInconsistentExt;