Skip to content

Commit

Permalink
Do not display the option to finalize drafts in the list of sent forms
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesiek2010 committed Dec 1, 2023
1 parent d97079a commit df09ac9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public void onCreate(Bundle savedInstanceState) {
return dialog;
});

if (bulkFinalizationViewModel.isEnabled()) {
if (bulkFinalizationViewModel.isEnabled() && editMode) {
DraftsMenuProvider draftsMenuProvider = new DraftsMenuProvider(this, bulkFinalizationViewModel::finalizeAllDrafts);
addMenuProvider(draftsMenuProvider, this);
bulkFinalizationViewModel.getDraftsCount().observe(this, draftsCount -> {
Expand Down

0 comments on commit df09ac9

Please sign in to comment.