Browse Source

fix(gui-v2): warning on hovering column header menu

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/3082/head
mertmit 2 years ago
parent
commit
f4dfd88eb9
  1. 5
      packages/nc-gui-v2/components/smartsheet-header/Menu.vue

5
packages/nc-gui-v2/components/smartsheet-header/Menu.vue

@ -18,7 +18,7 @@ const column = inject(ColumnInj)
const meta = inject(MetaInj) const meta = inject(MetaInj)
const { $api } = useNuxtApp() const { $api, $e } = useNuxtApp()
const { t } = useI18n() const { t } = useI18n()
@ -45,6 +45,7 @@ const setAsPrimaryValue = async () => {
await $api.dbTableColumn.primaryColumnSet(column?.value?.id as string) await $api.dbTableColumn.primaryColumnSet(column?.value?.id as string)
getMeta(meta?.value?.id as string, true) getMeta(meta?.value?.id as string, true)
message.success('Successfully updated as primary column') message.success('Successfully updated as primary column')
$e('a:column:set-primary')
} catch (e) { } catch (e) {
message.error('Failed to update primary column') message.error('Failed to update primary column')
} }
@ -63,7 +64,7 @@ const setAsPrimaryValue = async () => {
{{ $t('general.edit') }} {{ $t('general.edit') }}
</div> </div>
</a-menu-item> </a-menu-item>
<a-menu-item v-if="!virtual" v-t="['a:column:set-primary']" @click="setAsPrimaryValue"> <a-menu-item v-if="!virtual" @click="setAsPrimaryValue">
<div class="nc-column-edit nc-header-menu-item"> <div class="nc-column-edit nc-header-menu-item">
<MdiStarIcon class="text-primary" /> <MdiStarIcon class="text-primary" />

Loading…
Cancel
Save