fix: added remove image button
This commit is contained in:
parent
142a583255
commit
bb14cda6a6
@ -129,6 +129,14 @@
|
|||||||
: 'Upload image',
|
: 'Upload image',
|
||||||
onClick: openFileSelector,
|
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" />
|
<Button icon="more-horizontal" class="rounded-full h-8 w-8" />
|
||||||
@ -565,7 +573,7 @@ const detailSections = computed(() => {
|
|||||||
label: 'Contacts',
|
label: 'Contacts',
|
||||||
opened: true,
|
opened: true,
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
label: 'Salutation',
|
label: 'Salutation',
|
||||||
type: 'link',
|
type: 'link',
|
||||||
name: 'salutation',
|
name: 'salutation',
|
||||||
|
|||||||
@ -127,6 +127,14 @@
|
|||||||
label: lead.data.image ? 'Change photo' : 'Upload photo',
|
label: lead.data.image ? 'Change photo' : 'Upload photo',
|
||||||
onClick: openFileSelector,
|
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" />
|
<Button icon="more-horizontal" class="rounded-full h-8 w-8" />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user