[DE SSE mobile] Fix Bug 51968

This commit is contained in:
SergeyEzhin 2021-08-17 15:49:06 +03:00
parent 7b000e386d
commit d32460ffa8
6 changed files with 42 additions and 22 deletions

View file

@ -479,6 +479,7 @@
"textBack": "Back",
"textBottom": "Bottom",
"textCancel": "Cancel",
"textOk": "Ok",
"textCaseSensitive": "Case Sensitive",
"textCentimeter": "Centimeter",
"textCollaboration": "Collaboration",

View file

@ -479,6 +479,7 @@
"textBack": "Назад",
"textBottom": "Нижнее",
"textCancel": "Отмена",
"textOk": "Ок",
"textCaseSensitive": "С учетом регистра",
"textCentimeter": "Сантиметр",
"textCollaboration": "Совместная работа",

View file

@ -27,21 +27,29 @@ class DownloadController extends Component {
if(format) {
this.closeModal();
if (format == Asc.c_oAscFileType.TXT || format == Asc.c_oAscFileType.RTF) {
f7.dialog.confirm(
(format === Asc.c_oAscFileType.TXT) ? _t.textDownloadTxt : _t.textDownloadRtf,
_t.notcriticalErrorTitle,
() => {
if (format == Asc.c_oAscFileType.TXT) {
const isDocReady = this.props.storeAppOptions.isDocReady;
onAdvancedOptions(Asc.c_oAscAdvancedOptionsID.TXT, api.asc_getAdvancedOptions(), 2, new Asc.asc_CDownloadOptions(format), _t, isDocReady);
f7.dialog.create({
title: _t.notcriticalErrorTitle,
text: (format === Asc.c_oAscFileType.TXT) ? _t.textDownloadTxt : _t.textDownloadRtf,
buttons: [
{
text: _t.textCancel
},
{
text: _t.textOk,
onClick: () => {
if (format == Asc.c_oAscFileType.TXT) {
const isDocReady = this.props.storeAppOptions.isDocReady;
onAdvancedOptions(Asc.c_oAscAdvancedOptionsID.TXT, api.asc_getAdvancedOptions(), 2, new Asc.asc_CDownloadOptions(format), _t, isDocReady);
}
else {
setTimeout(() => {
api.asc_DownloadAs(new Asc.asc_CDownloadOptions(format));
}, 400);
}
}
}
else {
setTimeout(() => {
api.asc_DownloadAs(new Asc.asc_CDownloadOptions(format));
}, 400);
}
}
);
],
}).open();
}
else {
setTimeout(() => {

View file

@ -533,6 +533,7 @@
"textByColumns": "By columns",
"textByRows": "By rows",
"textCancel": "Cancel",
"textOk": "Ok",
"textCentimeter": "Centimeter",
"textCollaboration": "Collaboration",
"textColorSchemes": "Color Schemes",

View file

@ -253,7 +253,7 @@
"saveTitleText": "Сохранение документа",
"textLoadingDocument": "Загрузка документа",
"textNo": "Нет",
"textOk": "Ok",
"textOk": "Ок",
"textYes": "Да",
"txtEditingMode": "Установка режима редактирования...",
"uploadImageTextText": "Загрузка рисунка...",
@ -532,6 +532,7 @@
"textByColumns": "По столбцам",
"textByRows": "По строкам",
"textCancel": "Отмена",
"textOk": "Ок",
"textCentimeter": "Сантиметр",
"textCollaboration": "Совместная работа",
"textColorSchemes": "Цветовые схемы",

View file

@ -17,13 +17,21 @@ class DownloadController extends Component {
if (format) {
if (format == Asc.c_oAscFileType.CSV) {
f7.dialog.confirm(
_t.warnDownloadAs,
_t.notcriticalErrorTitle,
function () {
onAdvancedOptions(Asc.c_oAscAdvancedOptionsID.CSV, api.asc_getAdvancedOptions(), 2, new Asc.asc_CDownloadOptions(format), _t, true);
}
)
f7.dialog.create({
title: _t.notcriticalErrorTitle,
text: _t.warnDownloadAs,
buttons: [
{
text: _t.textCancel
},
{
text: _t.textOk,
onClick: () => {
onAdvancedOptions(Asc.c_oAscAdvancedOptionsID.CSV, api.asc_getAdvancedOptions(), 2, new Asc.asc_CDownloadOptions(format), _t, true);
}
}
]
}).open();
} else {
api.asc_DownloadAs(new Asc.asc_CDownloadOptions(format));
}