Merge pull request #1072 from ONLYOFFICE/feature/bug-fixes

[SSE mobile] Fix Bug 51947
This commit is contained in:
Julia Radzhabova 2021-08-13 16:11:47 +03:00 committed by GitHub
commit caf2805b64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 9 deletions

View file

@ -263,6 +263,7 @@
"Statusbar": {
"notcriticalErrorTitle": "Warning",
"textCancel": "Cancel",
"textOk": "Ok",
"textDelete": "Delete",
"textDuplicate": "Duplicate",
"textErrNameExists": "Worksheet with this name already exists.",

View file

@ -199,15 +199,20 @@ const Statusbar = inject('sheets', 'storeAppOptions', 'users')(observer(props =>
if (sheets.sheets.length == 1 || visibleSheets.length == 1) {
f7.dialog.alert(_t.textErrorLastSheet, _t.notcriticalErrorTitle);
} else {
f7.dialog.confirm(
_t.textWarnDeleteSheet,
_t.notcriticalErrorTitle,
() => {
if (!api.asc_deleteWorksheet()) {
f7.dialog.alert(_t.textErrorRemoveSheet, _t.notcriticalErrorTitle);
}
}
);
f7.dialog.create({
title: _t.notcriticalErrorTitle,
text: _t.textWarnDeleteSheet,
buttons: [
{text: _t.textCancel},
{
text: _t.textOk,
onClick: () => {
if (!api.asc_deleteWorksheet()) {
f7.dialog.alert(_t.textErrorRemoveSheet, _t.notcriticalErrorTitle);
}
}
}]
}).open();
}
};