fix: do not allow renaming or removing some sections in deal quick entry modal
This commit is contained in:
parent
3e4680abb9
commit
892e7b0d9c
@ -177,6 +177,7 @@ function getOptions(section) {
|
|||||||
label: 'Edit',
|
label: 'Edit',
|
||||||
icon: 'edit',
|
icon: 'edit',
|
||||||
onClick: () => (section.editingLabel = true),
|
onClick: () => (section.editingLabel = true),
|
||||||
|
condition: () => section.editable !== false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: section.hideLabel ? 'Show Label' : 'Hide Label',
|
label: section.hideLabel ? 'Show Label' : 'Hide Label',
|
||||||
@ -206,6 +207,7 @@ function getOptions(section) {
|
|||||||
label: 'Remove Section',
|
label: 'Remove Section',
|
||||||
icon: 'trash-2',
|
icon: 'trash-2',
|
||||||
onClick: () => props.sections.splice(props.sections.indexOf(section), 1),
|
onClick: () => props.sections.splice(props.sections.indexOf(section), 1),
|
||||||
|
condition: () => section.editable !== false,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user