[SSE] Fix Bug 52808
This commit is contained in:
parent
113dcc58f1
commit
5d0a1b5e00
|
@ -114,13 +114,24 @@ class ContextMenu extends ContextMenuController {
|
||||||
|
|
||||||
onMergeCells() {
|
onMergeCells() {
|
||||||
const { t } = this.props;
|
const { t } = this.props;
|
||||||
const _t = t("ContextMenu", { returnObjects: true });
|
|
||||||
const api = Common.EditorApi.get();
|
const api = Common.EditorApi.get();
|
||||||
if (api.asc_mergeCellsDataLost(Asc.c_oAscMergeOptions.Merge)) {
|
if (api.asc_mergeCellsDataLost(Asc.c_oAscMergeOptions.Merge)) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
f7.dialog.confirm(_t.warnMergeLostData, _t.notcriticalErrorTitle, () => {
|
f7.dialog.create({
|
||||||
api.asc_mergeCells(Asc.c_oAscMergeOptions.Merge);
|
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);
|
}, 0);
|
||||||
} else {
|
} else {
|
||||||
api.asc_mergeCells(Asc.c_oAscMergeOptions.Merge);
|
api.asc_mergeCells(Asc.c_oAscMergeOptions.Merge);
|
||||||
|
|
Loading…
Reference in a new issue