Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move Enrich button before Export #2011

Merged
merged 1 commit into from
Jan 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading