refactor: move delete button

This commit is contained in:
Pratik 2025-05-29 05:52:36 +00:00
parent 71f9b8e79f
commit acc746bd15
2 changed files with 24 additions and 10 deletions

View File

@ -8,11 +8,6 @@
</Breadcrumbs>
</template>
<template #right-header>
<Button
:label="__('Delete')"
variant="subtle"
@click="deleteDealWithModal()"
/>
<CustomActions
v-if="deal.data._customActions?.length"
:actions="deal.data._customActions"
@ -144,6 +139,18 @@
</Button>
</div>
</Tooltip>
<Tooltip :text="__('Delete')">
<div>
<Button
class="h-7 w-7"
@click="deleteDealWithModal(deal.data.name)"
variant="subtle"
theme="red"
>
<FeatherIcon name="trash" class="h-4 w-4" />
</Button>
</div>
</Tooltip>
</div>
</div>
</div>

View File

@ -48,11 +48,6 @@
</Button>
</template>
</Dropdown>
<Button
:label="__('Delete')"
variant="subtle"
@click="deleteLeadWithModal(lead.data.name)"
/>
<Button
:label="__('Convert to Deal')"
variant="solid"
@ -194,6 +189,18 @@
</Button>
</div>
</Tooltip>
<Tooltip :text="__('Delete')">
<div>
<Button
class="h-7 w-7"
@click="deleteLeadWithModal(lead.data.name)"
variant="subtle"
theme="red"
>
<FeatherIcon name="trash" class="h-4 w-4" />
</Button>
</div>
</Tooltip>
</div>
<ErrorMessage :message="__(error)" />
</div>