Skip to content

Commit

Permalink
[DE mobile] fix bug 71031
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkadushkin committed Nov 21, 2024
1 parent 28c34a9 commit 9b8499e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/documenteditor/mobile/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,7 @@
},
"Toolbar": {
"btnSend": "Send",
"warnEmptyRequiredField": "Fill all required fields to send form.",
"dlgLeaveMsgText": "You have unsaved changes. Click 'Stay on this Page' to wait for autosave. Click 'Leave this Page' to discard all the unsaved changes.",
"dlgLeaveTitleText": "You leave the application",
"leaveButtonText": "Leave this Page",
Expand Down
15 changes: 14 additions & 1 deletion apps/documenteditor/mobile/src/controller/Toolbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,20 @@ const ToolbarController = inject('storeAppOptions', 'users', 'storeReview', 'sto

const submitForm = () => {
const api = Common.EditorApi.get();
api.asc_SendForm();
if (!api.asc_IsAllRequiredFormsFilled()) {
f7.dialog.create({
title : '',
text : t('Toolbar.warnEmptyRequiredField'),
buttons : [
{
text: t('Toolbar.textOk'),
onClick: () => api.asc_MoveToFillingForm(true, true, true)
}
]
}).open();
} else {
api.asc_SendForm();
}
}

return (
Expand Down

0 comments on commit 9b8499e

Please sign in to comment.