Browse Source

fix: Added events View action

pull/6539/head
Muhammed Mustafa 1 year ago
parent
commit
d6b46694d4
  1. 4
      packages/nc-gui/components/smartsheet/toolbar/ExportSubActions.vue
  2. 4
      packages/nc-gui/components/smartsheet/toolbar/ViewActions.vue

4
packages/nc-gui/components/smartsheet/toolbar/ExportSubActions.vue

@ -100,7 +100,7 @@ const exportFile = async (exportType: ExportTypes) => {
<template>
<a-menu-item>
<div v-e="['a:actions:download-csv']" class="nc-project-menu-item" @click="exportFile(ExportTypes.CSV)">
<div v-e="['a:download:csv']" class="nc-project-menu-item" @click="exportFile(ExportTypes.CSV)">
<component :is="iconMap.csv" />
<!-- Download as CSV -->
{{ $t('activity.downloadCSV') }}
@ -108,7 +108,7 @@ const exportFile = async (exportType: ExportTypes) => {
</a-menu-item>
<a-menu-item>
<div v-e="['a:actions:download-excel']" class="nc-project-menu-item" @click="exportFile(ExportTypes.EXCEL)">
<div v-e="['a:download:excel']" class="nc-project-menu-item" @click="exportFile(ExportTypes.EXCEL)">
<component :is="iconMap.excel" />
<!-- Download as XLSX -->
{{ $t('activity.downloadExcel') }}

4
packages/nc-gui/components/smartsheet/toolbar/ViewActions.vue

@ -132,7 +132,7 @@ useMenuCloseOnEsc(open)
<template v-for="(dialog, type) in quickImportDialogs">
<a-menu-item v-if="isUIAllowed(`${type}TableImport`) && !isView && !isPublicView" :key="type">
<div
v-e="[`a:actions:upload-${type}`]"
v-e="[`a:upload:${type}`]"
class="nc-project-menu-item"
:class="{ disabled: isLocked }"
@click="!isLocked ? (dialog.value = true) : {}"
@ -146,7 +146,7 @@ useMenuCloseOnEsc(open)
</template>
<a-sub-menu key="download">
<template #title>
<div v-e="['c:navdraw:preview-as']" class="nc-project-menu-item group">
<div v-e="['c:download']" class="nc-project-menu-item group">
<DownloadIcon class="w-4 h-4" />
{{ $t('general.download') }}
<div class="flex-1" />

Loading…
Cancel
Save