|
|
|
@ -1,7 +1,10 @@
|
|
|
|
|
<script lang="ts" setup> |
|
|
|
|
import MdiFlashIcon from '~icons/mdi/flash-outline' |
|
|
|
|
import MdiMenuDownIcon from '~icons/mdi/menu-down' |
|
|
|
|
import MdiDownloadIcon from '~icons/mdi/download-outline' |
|
|
|
|
import MdiFlashIcon from "~icons/mdi/flash-outline"; |
|
|
|
|
import MdiMenuDownIcon from "~icons/mdi/menu-down"; |
|
|
|
|
import MdiDownloadIcon from "~icons/mdi/download-outline"; |
|
|
|
|
import MdiUploadIcon from "~icons/mdi/upload-outline"; |
|
|
|
|
import MdiHookIcon from "~icons/mdi/hook"; |
|
|
|
|
import MdiViewListIcon from "~icons/mdi/view-list-outline"; |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
@ -10,98 +13,35 @@ import MdiDownloadIcon from '~icons/mdi/download-outline'
|
|
|
|
|
<div class="flex gap-1 align-center"> |
|
|
|
|
<MdiFlashIcon class="text-grey" /> |
|
|
|
|
<!-- More --> |
|
|
|
|
{{ $t('general.more') }} |
|
|
|
|
{{ $t("general.more") }} |
|
|
|
|
<MdiMenuDownIcon class="text-grey" /> |
|
|
|
|
</div> |
|
|
|
|
</a-button> |
|
|
|
|
<template #overlay> |
|
|
|
|
<div class="p-2 bg-white"> |
|
|
|
|
<a-menu> |
|
|
|
|
<a-menu-item> |
|
|
|
|
<div class="text-xs flex align-center gap-2"> |
|
|
|
|
<MdiDownloadIcon /> |
|
|
|
|
<!-- Download as CSV --> |
|
|
|
|
{{ $t('activity.downloadCSV') }} |
|
|
|
|
</div> |
|
|
|
|
</a-menu-item> |
|
|
|
|
</a-menu> |
|
|
|
|
<div class=" bg-white shadow"> |
|
|
|
|
<div> |
|
|
|
|
<div class="nc-menu-item" @click.stop> |
|
|
|
|
<MdiDownloadIcon /> |
|
|
|
|
<!-- Download as CSV --> |
|
|
|
|
{{ $t("activity.downloadCSV") }} |
|
|
|
|
</div> |
|
|
|
|
<div class="nc-menu-item" @click.stop> |
|
|
|
|
<MdiUploadIcon /> |
|
|
|
|
<!-- Upload CSV --> |
|
|
|
|
{{ $t("activity.uploadCSV") }} |
|
|
|
|
</div> |
|
|
|
|
<div class="nc-menu-item" @click.stop> |
|
|
|
|
<MdiViewListIcon /> |
|
|
|
|
<!-- Shared View List --> |
|
|
|
|
{{ $t("activity.listSharedView") }} |
|
|
|
|
</div> |
|
|
|
|
<div class="nc-menu-item" @click.stop> |
|
|
|
|
<MdiHookIcon /> |
|
|
|
|
<!-- todo: i18n --> |
|
|
|
|
Webhook |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</a-dropdown> |
|
|
|
|
<!-- <div> |
|
|
|
|
<v-menu open-on-hover bottom offset-y transition="slide-y-transition"> |
|
|
|
|
<template #activator="{ on }"> |
|
|
|
|
<v-btn |
|
|
|
|
v-t="['c:actions']" |
|
|
|
|
outlined |
|
|
|
|
class="nc-actions-menu-btn caption px-2 nc-remove-border font-weight-medium" |
|
|
|
|
small |
|
|
|
|
text |
|
|
|
|
v-on="on" |
|
|
|
|
> |
|
|
|
|
<v-icon small color="#777"> mdi-flash-outline </v-icon> |
|
|
|
|
<!– More –> |
|
|
|
|
{{ $t('general.more') }} |
|
|
|
|
|
|
|
|
|
<v-icon small color="#777"> mdi-menu-down </v-icon> |
|
|
|
|
</v-btn> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<v-list dense> |
|
|
|
|
<v-list-item v-t="['a:actions:download-csv']" dense @click="exportCsv"> |
|
|
|
|
<v-list-item-title> |
|
|
|
|
<v-icon small class="mr-1"> mdi-download-outline </v-icon> |
|
|
|
|
<span class="caption"> |
|
|
|
|
<!– Download as CSV –> |
|
|
|
|
{{ $t('activity.downloadCSV') }} |
|
|
|
|
</span> |
|
|
|
|
</v-list-item-title> |
|
|
|
|
</v-list-item> |
|
|
|
|
<v-list-item v-if="_isUIAllowed('csvImport') && !isView" v-t="['a:actions:upload-csv']" dense @click="importModal = true"> |
|
|
|
|
<v-list-item-title> |
|
|
|
|
<v-icon small class="mr-1" color=""> mdi-upload-outline </v-icon> |
|
|
|
|
<span class="caption"> |
|
|
|
|
<!– Upload CSV –> |
|
|
|
|
{{ $t('activity.uploadCSV') }} |
|
|
|
|
</span> |
|
|
|
|
|
|
|
|
|
<span class="caption grey--text">(<x-icon small color="grey lighten-2"> mdi-alpha </x-icon> version)</span> |
|
|
|
|
</v-list-item-title> |
|
|
|
|
</v-list-item> |
|
|
|
|
<v-list-item |
|
|
|
|
v-if="_isUIAllowed('SharedViewList') && !isView" |
|
|
|
|
v-t="['a:actions:shared-view-list']" |
|
|
|
|
dense |
|
|
|
|
@click="$emit('showAdditionalFeatOverlay', 'shared-views')" |
|
|
|
|
> |
|
|
|
|
<v-list-item-title> |
|
|
|
|
<v-icon small class="mr-1" color=""> mdi-view-list-outline </v-icon> |
|
|
|
|
<span class="caption"> |
|
|
|
|
<!– Shared View List –> |
|
|
|
|
{{ $t('activity.listSharedView') }} |
|
|
|
|
</span> |
|
|
|
|
</v-list-item-title> |
|
|
|
|
</v-list-item> |
|
|
|
|
<v-list-item v-if="_isUIAllowed('webhook') && !isView" v-t="['c:actions:webhook']" dense @click="webhookModal = true"> |
|
|
|
|
<v-list-item-title> |
|
|
|
|
<v-icon small class="mr-1" color=""> mdi-hook </v-icon> |
|
|
|
|
<span class="caption"> Webhooks </span> |
|
|
|
|
</v-list-item-title> |
|
|
|
|
</v-list-item> |
|
|
|
|
</v-list> |
|
|
|
|
</v-menu> |
|
|
|
|
<DropOrSelectFileModal v-model="importModal" accept=".csv" text="CSV" @file="onCsvFileSelection" /> |
|
|
|
|
<ColumnMappingModal |
|
|
|
|
v-if="columnMappingModal && meta" |
|
|
|
|
v-model="columnMappingModal" |
|
|
|
|
:meta="meta" |
|
|
|
|
:import-data-columns="parsedCsv.columns" |
|
|
|
|
:parsed-csv="parsedCsv" |
|
|
|
|
@import="importData" |
|
|
|
|
/> |
|
|
|
|
<!– <webhook-modal v-if="webhookModal" v-model="webhookModal" :meta="meta" /> –> |
|
|
|
|
<WebhookSlider v-model="webhookModal" :meta="meta" /> |
|
|
|
|
</div> --> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<style scoped></style> |
|
|
|
|