Browse Source

refactor: more actions, create column background gray

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3214/head
Raju Udava 2 years ago
parent
commit
f97ef5769b
  1. 2
      packages/nc-gui-v2/components/smartsheet-column/EditOrAdd.vue
  2. 12
      packages/nc-gui-v2/components/smartsheet-toolbar/MoreActions.vue

2
packages/nc-gui-v2/components/smartsheet-column/EditOrAdd.vue

@ -99,7 +99,7 @@ useEventListener(document, 'click', handleClose)
</script> </script>
<template> <template>
<div ref="editOrAddRef" class="min-w-[400px] max-h-[95vh] bg-white shadow p-6 overflow-auto" @click.stop> <div ref="editOrAddRef" class="min-w-[400px] max-h-[95vh] bg-gray-50 shadow-lg p-6 overflow-auto !border" @click.stop>
<a-form v-if="formState" v-model="formState" name="column-create-or-edit" layout="vertical"> <a-form v-if="formState" v-model="formState" name="column-create-or-edit" layout="vertical">
<div class="flex flex-col gap-2"> <div class="flex flex-col gap-2">
<a-form-item :label="$t('labels.columnName')" v-bind="validateInfos.title"> <a-form-item :label="$t('labels.columnName')" v-bind="validateInfos.title">

12
packages/nc-gui-v2/components/smartsheet-toolbar/MoreActions.vue

@ -106,16 +106,16 @@ const exportFile = async (exportType: ExportTypes) => {
</a-button> </a-button>
<template #overlay> <template #overlay>
<div class="bg-white shadow-lg !border"> <div class="bg-gray-50 py-2 shadow-lg !border">
<div> <div>
<div v-t="['a:actions:download-csv']" class="nc-menu-item" @click="exportFile(ExportTypes.CSV)"> <div v-t="['a:actions:download-csv']" class="nc-menu-item" @click="exportFile(ExportTypes.CSV)">
<MdiDownloadOutline /> <MdiDownloadOutline class="text-gray-500" />
<!-- Download as CSV --> <!-- Download as CSV -->
{{ $t('activity.downloadCSV') }} {{ $t('activity.downloadCSV') }}
</div> </div>
<div v-t="['a:actions:download-excel']" class="nc-menu-item" @click="exportFile(ExportTypes.EXCEL)"> <div v-t="['a:actions:download-excel']" class="nc-menu-item" @click="exportFile(ExportTypes.EXCEL)">
<MdiDownloadOutline /> <MdiDownloadOutline class="text-gray-500" />
<!-- Download as XLSX --> <!-- Download as XLSX -->
{{ $t('activity.downloadExcel') }} {{ $t('activity.downloadExcel') }}
</div> </div>
@ -126,7 +126,7 @@ const exportFile = async (exportType: ExportTypes) => {
class="nc-menu-item" class="nc-menu-item"
@click="quickImportDialog = true" @click="quickImportDialog = true"
> >
<MdiUploadOutline /> <MdiUploadOutline class="text-gray-500" />
<!-- Upload CSV --> <!-- Upload CSV -->
{{ $t('activity.uploadCSV') }} {{ $t('activity.uploadCSV') }}
</div> </div>
@ -137,7 +137,7 @@ const exportFile = async (exportType: ExportTypes) => {
class="nc-menu-item" class="nc-menu-item"
@click="sharedViewListDlg = true" @click="sharedViewListDlg = true"
> >
<MdiViewListOutline /> <MdiViewListOutline class="text-gray-500" />
<!-- Shared View List --> <!-- Shared View List -->
{{ $t('activity.listSharedView') }} {{ $t('activity.listSharedView') }}
</div> </div>
@ -148,7 +148,7 @@ const exportFile = async (exportType: ExportTypes) => {
class="nc-menu-item" class="nc-menu-item"
@click="showWebhookDrawer = true" @click="showWebhookDrawer = true"
> >
<MdiHook /> <MdiHook class="text-gray-500" />
{{ $t('objects.webhooks') }} {{ $t('objects.webhooks') }}
</div> </div>
</div> </div>

Loading…
Cancel
Save