From 5d0a1b5e00737bc23268537f8014ec49086369e6 Mon Sep 17 00:00:00 2001 From: ShimaginAndrey Date: Thu, 30 Sep 2021 15:03:39 +0300 Subject: [PATCH] [SSE] Fix Bug 52808 --- .../mobile/src/controller/ContextMenu.jsx | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/apps/spreadsheeteditor/mobile/src/controller/ContextMenu.jsx b/apps/spreadsheeteditor/mobile/src/controller/ContextMenu.jsx index 86d2dffaa..47212dde2 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/ContextMenu.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/ContextMenu.jsx @@ -114,13 +114,24 @@ class ContextMenu extends ContextMenuController { onMergeCells() { const { t } = this.props; - const _t = t("ContextMenu", { returnObjects: true }); const api = Common.EditorApi.get(); if (api.asc_mergeCellsDataLost(Asc.c_oAscMergeOptions.Merge)) { setTimeout(() => { - f7.dialog.confirm(_t.warnMergeLostData, _t.notcriticalErrorTitle, () => { - api.asc_mergeCells(Asc.c_oAscMergeOptions.Merge); - }); + f7.dialog.create({ + title: t('ContextMenu.notcriticalErrorTitle'), + text: t('ContextMenu.warnMergeLostData'), + buttons: [ + { + text: t('ContextMenu.menuCancel') + }, + { + text: 'OK', + onClick: () => { + api.asc_mergeCells(Asc.c_oAscMergeOptions.Merge); + } + } + ] + }).open(); }, 0); } else { api.asc_mergeCells(Asc.c_oAscMergeOptions.Merge);