1
0
forked from test/crm

fix: do not allow renaming or removing some sections in deal quick entry modal

This commit is contained in:
Shariq Ansari 2024-06-19 19:17:24 +05:30
parent 3e4680abb9
commit 892e7b0d9c

View File

@ -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,
},
]
}