From 217ca16462c825f390c0514d91a9e008adb4cd81 Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Fri, 3 Dec 2021 01:05:19 +0400 Subject: [PATCH] [SSE mobile] Correct long actions --- .../mobile/src/controller/LongActions.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/spreadsheeteditor/mobile/src/controller/LongActions.jsx b/apps/spreadsheeteditor/mobile/src/controller/LongActions.jsx index c7617d8fd..7b67bb3c9 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/LongActions.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/LongActions.jsx @@ -223,12 +223,15 @@ const LongActionsController = () => { onClick: () => { let password = document.getElementById('modal-password').value; if(apiCallback) { - apiCallback(true ? api.asc_checkProtectedRangesPassword(password, data) : false, false); + api.asc_checkProtectedRangesPassword(password, data, (res) => { + apiCallback(res, false); + }); } } }, { - text: t('LongActions.textCancel') + text: t('LongActions.textCancel'), + onClick: () => apiCallback(false, true) } ] }).open();