Skip to content

Commit 97ff97b

Browse files
authored
move Enrich button before Export (#2011)
1 parent 206e75a commit 97ff97b

File tree

1 file changed

+29
-33
lines changed

1 file changed

+29
-33
lines changed

frontend/src/components/Mining/Table/MiningTable.vue

Lines changed: 29 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -58,39 +58,35 @@
5858
</template>
5959
<template #header>
6060
<div class="flex items-center gap-1">
61-
<div class="flex items-center gap-1">
62-
<Button
63-
id="export-csv"
64-
v-tooltip.top="
65-
isExportDisabled &&
66-
t('select_at_least_one_contact', { action: t('export') })
67-
"
68-
icon="pi pi-external-link"
69-
:label="$screenStore.size.md ? t('export_csv') : undefined"
70-
:disabled="isExportDisabled"
71-
@click="exportTable()"
72-
/>
73-
<div
74-
v-tooltip.top="
75-
(isExportDisabled || !selectedContactsLength) &&
76-
t('select_at_least_one_contact', { action: t('remove') })
77-
"
78-
>
79-
<RemoveContactButton
80-
:contacts-to-delete="contactsToTreat"
81-
:contacts-to-delete-length="selectedContactsLength"
82-
:is-remove-disabled="isExportDisabled || !selectedContactsLength"
83-
:deselect-contacts="deselectContacts"
84-
/>
85-
</div>
86-
</div>
87-
<div>
88-
<EnrichButton
89-
source="datatable"
90-
:enrichment-realtime-callback="emptyFunction"
91-
:enrichment-request-response-callback="emptyFunction"
92-
:contacts-to-enrich="implicitlySelectedContacts"
93-
:enrich-all-contacts="$contactsStore.selectedEmails === undefined"
61+
<EnrichButton
62+
source="datatable"
63+
:enrichment-realtime-callback="emptyFunction"
64+
:enrichment-request-response-callback="emptyFunction"
65+
:contacts-to-enrich="implicitlySelectedContacts"
66+
:enrich-all-contacts="$contactsStore.selectedEmails === undefined"
67+
/>
68+
<Button
69+
id="export-csv"
70+
v-tooltip.top="
71+
isExportDisabled &&
72+
t('select_at_least_one_contact', { action: t('export') })
73+
"
74+
icon="pi pi-external-link"
75+
:label="$screenStore.size.md ? t('export_csv') : undefined"
76+
:disabled="isExportDisabled"
77+
@click="exportTable()"
78+
/>
79+
<div
80+
v-tooltip.top="
81+
(isExportDisabled || !selectedContactsLength) &&
82+
t('select_at_least_one_contact', { action: t('remove') })
83+
"
84+
>
85+
<RemoveContactButton
86+
:contacts-to-delete="contactsToTreat"
87+
:contacts-to-delete-length="selectedContactsLength"
88+
:is-remove-disabled="isExportDisabled || !selectedContactsLength"
89+
:deselect-contacts="deselectContacts"
9490
/>
9591
</div>
9692
<div class="ml-2">

0 commit comments

Comments
 (0)