|
|
@ -1,7 +1,10 @@ |
|
|
|
<script lang="ts" setup> |
|
|
|
<script lang="ts" setup> |
|
|
|
import MdiFlashIcon from '~icons/mdi/flash-outline' |
|
|
|
import MdiFlashIcon from "~icons/mdi/flash-outline"; |
|
|
|
import MdiMenuDownIcon from '~icons/mdi/menu-down' |
|
|
|
import MdiMenuDownIcon from "~icons/mdi/menu-down"; |
|
|
|
import MdiDownloadIcon from '~icons/mdi/download-outline' |
|
|
|
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> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
@ -10,98 +13,35 @@ import MdiDownloadIcon from '~icons/mdi/download-outline' |
|
|
|
<div class="flex gap-1 align-center"> |
|
|
|
<div class="flex gap-1 align-center"> |
|
|
|
<MdiFlashIcon class="text-grey" /> |
|
|
|
<MdiFlashIcon class="text-grey" /> |
|
|
|
<!-- More --> |
|
|
|
<!-- More --> |
|
|
|
{{ $t('general.more') }} |
|
|
|
{{ $t("general.more") }} |
|
|
|
<MdiMenuDownIcon class="text-grey" /> |
|
|
|
<MdiMenuDownIcon class="text-grey" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-button> |
|
|
|
</a-button> |
|
|
|
<template #overlay> |
|
|
|
<template #overlay> |
|
|
|
<div class="p-2 bg-white"> |
|
|
|
<div class=" bg-white shadow"> |
|
|
|
<a-menu> |
|
|
|
<div> |
|
|
|
<a-menu-item> |
|
|
|
<div class="nc-menu-item" @click.stop> |
|
|
|
<div class="text-xs flex align-center gap-2"> |
|
|
|
<MdiDownloadIcon /> |
|
|
|
<MdiDownloadIcon /> |
|
|
|
<!-- Download as CSV --> |
|
|
|
<!-- Download as CSV --> |
|
|
|
{{ $t("activity.downloadCSV") }} |
|
|
|
{{ $t('activity.downloadCSV') }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="nc-menu-item" @click.stop> |
|
|
|
</a-menu-item> |
|
|
|
<MdiUploadIcon /> |
|
|
|
</a-menu> |
|
|
|
<!-- 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> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</a-dropdown> |
|
|
|
</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> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<style scoped></style> |
|
|
|
|
|
|
|