Skip to content

Commit

Permalink
move Enrich button before Export (#2011)
Browse files Browse the repository at this point in the history
  • Loading branch information
J43fura authored Jan 29, 2025
1 parent 206e75a commit 97ff97b
Showing 1 changed file with 29 additions and 33 deletions.
62 changes: 29 additions & 33 deletions frontend/src/components/Mining/Table/MiningTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,39 +58,35 @@
</template>
<template #header>
<div class="flex items-center gap-1">
<div class="flex items-center gap-1">
<Button
id="export-csv"
v-tooltip.top="
isExportDisabled &&
t('select_at_least_one_contact', { action: t('export') })
"
icon="pi pi-external-link"
:label="$screenStore.size.md ? t('export_csv') : undefined"
:disabled="isExportDisabled"
@click="exportTable()"
/>
<div
v-tooltip.top="
(isExportDisabled || !selectedContactsLength) &&
t('select_at_least_one_contact', { action: t('remove') })
"
>
<RemoveContactButton
:contacts-to-delete="contactsToTreat"
:contacts-to-delete-length="selectedContactsLength"
:is-remove-disabled="isExportDisabled || !selectedContactsLength"
:deselect-contacts="deselectContacts"
/>
</div>
</div>
<div>
<EnrichButton
source="datatable"
:enrichment-realtime-callback="emptyFunction"
:enrichment-request-response-callback="emptyFunction"
:contacts-to-enrich="implicitlySelectedContacts"
:enrich-all-contacts="$contactsStore.selectedEmails === undefined"
<EnrichButton
source="datatable"
:enrichment-realtime-callback="emptyFunction"
:enrichment-request-response-callback="emptyFunction"
:contacts-to-enrich="implicitlySelectedContacts"
:enrich-all-contacts="$contactsStore.selectedEmails === undefined"
/>
<Button
id="export-csv"
v-tooltip.top="
isExportDisabled &&
t('select_at_least_one_contact', { action: t('export') })
"
icon="pi pi-external-link"
:label="$screenStore.size.md ? t('export_csv') : undefined"
:disabled="isExportDisabled"
@click="exportTable()"
/>
<div
v-tooltip.top="
(isExportDisabled || !selectedContactsLength) &&
t('select_at_least_one_contact', { action: t('remove') })
"
>
<RemoveContactButton
:contacts-to-delete="contactsToTreat"
:contacts-to-delete-length="selectedContactsLength"
:is-remove-disabled="isExportDisabled || !selectedContactsLength"
:deselect-contacts="deselectContacts"
/>
</div>
<div class="ml-2">
Expand Down

0 comments on commit 97ff97b

Please sign in to comment.