Merge pull request #1072 from ONLYOFFICE/feature/bug-fixes
[SSE mobile] Fix Bug 51947
This commit is contained in:
commit
caf2805b64
|
@ -263,6 +263,7 @@
|
||||||
"Statusbar": {
|
"Statusbar": {
|
||||||
"notcriticalErrorTitle": "Warning",
|
"notcriticalErrorTitle": "Warning",
|
||||||
"textCancel": "Cancel",
|
"textCancel": "Cancel",
|
||||||
|
"textOk": "Ok",
|
||||||
"textDelete": "Delete",
|
"textDelete": "Delete",
|
||||||
"textDuplicate": "Duplicate",
|
"textDuplicate": "Duplicate",
|
||||||
"textErrNameExists": "Worksheet with this name already exists.",
|
"textErrNameExists": "Worksheet with this name already exists.",
|
||||||
|
|
|
@ -199,15 +199,20 @@ const Statusbar = inject('sheets', 'storeAppOptions', 'users')(observer(props =>
|
||||||
if (sheets.sheets.length == 1 || visibleSheets.length == 1) {
|
if (sheets.sheets.length == 1 || visibleSheets.length == 1) {
|
||||||
f7.dialog.alert(_t.textErrorLastSheet, _t.notcriticalErrorTitle);
|
f7.dialog.alert(_t.textErrorLastSheet, _t.notcriticalErrorTitle);
|
||||||
} else {
|
} else {
|
||||||
f7.dialog.confirm(
|
f7.dialog.create({
|
||||||
_t.textWarnDeleteSheet,
|
title: _t.notcriticalErrorTitle,
|
||||||
_t.notcriticalErrorTitle,
|
text: _t.textWarnDeleteSheet,
|
||||||
() => {
|
buttons: [
|
||||||
if (!api.asc_deleteWorksheet()) {
|
{text: _t.textCancel},
|
||||||
f7.dialog.alert(_t.textErrorRemoveSheet, _t.notcriticalErrorTitle);
|
{
|
||||||
}
|
text: _t.textOk,
|
||||||
}
|
onClick: () => {
|
||||||
);
|
if (!api.asc_deleteWorksheet()) {
|
||||||
|
f7.dialog.alert(_t.textErrorRemoveSheet, _t.notcriticalErrorTitle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
}).open();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue