Skip to content

Commit

Permalink
small fixes for previous commit, enabling and disabling options in re…
Browse files Browse the repository at this point in the history
…lation to allowEdit option

Signed-off-by: Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
  • Loading branch information
tpokorra committed Oct 25, 2023
1 parent 9c880a0 commit c01a0c6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/components/SidebarTabs/SettingsSidebarTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,20 @@ export default {
.length !== 0
},
// If disabled, submitMultiple will be casted to true
// If disabled, submitMultiple will be casted to false if allowEdit is true, else casted to true
submitMultiple() {
if (this.disableSubmitMultiple && this.allowEdit) {
return false;
}
return this.disableSubmitMultiple || this.form.submitMultiple
},
// If disabled, allowEdit will be casted to true
// If disabled, allowEdit will be casted to false
allowEdit() {
return this.disableAllowEdit || this.form.allowEdit
if (this.disableAllowEdit) {
return false;
}
return this.form.allowEdit
},
formExpires() {
Expand Down

0 comments on commit c01a0c6

Please sign in to comment.