From 892e7b0d9ce43f1d50dc3d88c4db89558cf6d3b9 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Wed, 19 Jun 2024 19:17:24 +0530 Subject: [PATCH] fix: do not allow renaming or removing some sections in deal quick entry modal --- frontend/src/components/Settings/QuickEntryLayoutBuilder.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/components/Settings/QuickEntryLayoutBuilder.vue b/frontend/src/components/Settings/QuickEntryLayoutBuilder.vue index 30158155..c285db8a 100644 --- a/frontend/src/components/Settings/QuickEntryLayoutBuilder.vue +++ b/frontend/src/components/Settings/QuickEntryLayoutBuilder.vue @@ -177,6 +177,7 @@ function getOptions(section) { label: 'Edit', icon: 'edit', onClick: () => (section.editingLabel = true), + condition: () => section.editable !== false, }, { label: section.hideLabel ? 'Show Label' : 'Hide Label', @@ -206,6 +207,7 @@ function getOptions(section) { label: 'Remove Section', icon: 'trash-2', onClick: () => props.sections.splice(props.sections.indexOf(section), 1), + condition: () => section.editable !== false, }, ] }