fix: added remove image button

This commit is contained in:
Shariq Ansari 2023-09-01 12:10:31 +05:30
parent 142a583255
commit bb14cda6a6
2 changed files with 17 additions and 1 deletions

View File

@ -129,6 +129,14 @@
: 'Upload image',
onClick: openFileSelector,
},
{
icon: 'trash-2',
label: 'Remove image',
onClick: () => {
deal.data.organization_logo = ''
updateDeal('organization_logo', '')
},
},
]"
>
<Button icon="more-horizontal" class="rounded-full h-8 w-8" />
@ -565,7 +573,7 @@ const detailSections = computed(() => {
label: 'Contacts',
opened: true,
fields: [
{
{
label: 'Salutation',
type: 'link',
name: 'salutation',

View File

@ -127,6 +127,14 @@
label: lead.data.image ? 'Change photo' : 'Upload photo',
onClick: openFileSelector,
},
{
icon: 'trash-2',
label: 'Remove photo',
onClick: () => {
lead.data.image = ''
updateLead('image', '')
},
},
]"
>
<Button icon="more-horizontal" class="rounded-full h-8 w-8" />