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> <template>
<a-menu-item> <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" /> <component :is="iconMap.csv" />
<!-- Download as CSV --> <!-- Download as CSV -->
{{ $t('activity.downloadCSV') }} {{ $t('activity.downloadCSV') }}
@ -108,7 +108,7 @@ const exportFile = async (exportType: ExportTypes) => {
</a-menu-item> </a-menu-item>
<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" /> <component :is="iconMap.excel" />
<!-- Download as XLSX --> <!-- Download as XLSX -->
{{ $t('activity.downloadExcel') }} {{ $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"> <template v-for="(dialog, type) in quickImportDialogs">
<a-menu-item v-if="isUIAllowed(`${type}TableImport`) && !isView && !isPublicView" :key="type"> <a-menu-item v-if="isUIAllowed(`${type}TableImport`) && !isView && !isPublicView" :key="type">
<div <div
v-e="[`a:actions:upload-${type}`]" v-e="[`a:upload:${type}`]"
class="nc-project-menu-item" class="nc-project-menu-item"
:class="{ disabled: isLocked }" :class="{ disabled: isLocked }"
@click="!isLocked ? (dialog.value = true) : {}" @click="!isLocked ? (dialog.value = true) : {}"
@ -146,7 +146,7 @@ useMenuCloseOnEsc(open)
</template> </template>
<a-sub-menu key="download"> <a-sub-menu key="download">
<template #title> <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" /> <DownloadIcon class="w-4 h-4" />
{{ $t('general.download') }} {{ $t('general.download') }}
<div class="flex-1" /> <div class="flex-1" />

Loading…
Cancel
Save