[DE SSE mobile] Fix Bug 51968
This commit is contained in:
parent
7b000e386d
commit
d32460ffa8
|
@ -479,6 +479,7 @@
|
|||
"textBack": "Back",
|
||||
"textBottom": "Bottom",
|
||||
"textCancel": "Cancel",
|
||||
"textOk": "Ok",
|
||||
"textCaseSensitive": "Case Sensitive",
|
||||
"textCentimeter": "Centimeter",
|
||||
"textCollaboration": "Collaboration",
|
||||
|
|
|
@ -479,6 +479,7 @@
|
|||
"textBack": "Назад",
|
||||
"textBottom": "Нижнее",
|
||||
"textCancel": "Отмена",
|
||||
"textOk": "Ок",
|
||||
"textCaseSensitive": "С учетом регистра",
|
||||
"textCentimeter": "Сантиметр",
|
||||
"textCollaboration": "Совместная работа",
|
||||
|
|
|
@ -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(() => {
|
||||
|
|
|
@ -533,6 +533,7 @@
|
|||
"textByColumns": "By columns",
|
||||
"textByRows": "By rows",
|
||||
"textCancel": "Cancel",
|
||||
"textOk": "Ok",
|
||||
"textCentimeter": "Centimeter",
|
||||
"textCollaboration": "Collaboration",
|
||||
"textColorSchemes": "Color Schemes",
|
||||
|
|
|
@ -253,7 +253,7 @@
|
|||
"saveTitleText": "Сохранение документа",
|
||||
"textLoadingDocument": "Загрузка документа",
|
||||
"textNo": "Нет",
|
||||
"textOk": "Ok",
|
||||
"textOk": "Ок",
|
||||
"textYes": "Да",
|
||||
"txtEditingMode": "Установка режима редактирования...",
|
||||
"uploadImageTextText": "Загрузка рисунка...",
|
||||
|
@ -532,6 +532,7 @@
|
|||
"textByColumns": "По столбцам",
|
||||
"textByRows": "По строкам",
|
||||
"textCancel": "Отмена",
|
||||
"textOk": "Ок",
|
||||
"textCentimeter": "Сантиметр",
|
||||
"textCollaboration": "Совместная работа",
|
||||
"textColorSchemes": "Цветовые схемы",
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue