[SSE mobile] Correct long actions

This commit is contained in:
SergeyEzhin 2021-12-03 01:05:19 +04:00
parent 01ba97c2f1
commit 217ca16462

View file

@ -223,12 +223,15 @@ const LongActionsController = () => {
onClick: () => { onClick: () => {
let password = document.getElementById('modal-password').value; let password = document.getElementById('modal-password').value;
if(apiCallback) { 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(); }).open();