|
|
|
@ -2,10 +2,11 @@
|
|
|
|
|
import type { TableType } from 'nocodb-sdk' |
|
|
|
|
import type { Input } from 'ant-design-vue' |
|
|
|
|
import { Dropdown, Tooltip, message } from 'ant-design-vue' |
|
|
|
|
import { storeToRefs } from 'pinia' |
|
|
|
|
import Sortable from 'sortablejs' |
|
|
|
|
import GithubButton from 'vue-github-button' |
|
|
|
|
import { Icon } from '@iconify/vue' |
|
|
|
|
import type { VNodeRef } from '#imports' |
|
|
|
|
import { Icon } from '@iconify/vue' |
|
|
|
|
import { |
|
|
|
|
ClientType, |
|
|
|
|
Empty, |
|
|
|
@ -35,7 +36,10 @@ const { addTab, updateTab } = useTabs()
|
|
|
|
|
|
|
|
|
|
const { $api, $e } = useNuxtApp() |
|
|
|
|
|
|
|
|
|
const { bases, tables, loadTables, isSharedBase } = useProject() |
|
|
|
|
const projectStore = useProject() |
|
|
|
|
|
|
|
|
|
const { loadTables } = projectStore |
|
|
|
|
const { bases, tables, isSharedBase } = storeToRefs(projectStore) |
|
|
|
|
|
|
|
|
|
const { activeTab } = useTabs() |
|
|
|
|
|
|
|
|
@ -709,8 +713,8 @@ const setIcon = async (icon: string, table: TableType) => {
|
|
|
|
|
<MdiPlus /> |
|
|
|
|
|
|
|
|
|
<span class="text-gray-500 group-hover:(text-primary/100) flex-1 nc-add-new-table">{{ |
|
|
|
|
$t('tooltip.addTable') |
|
|
|
|
}}</span> |
|
|
|
|
$t('tooltip.addTable') |
|
|
|
|
}}</span> |
|
|
|
|
|
|
|
|
|
<a-dropdown |
|
|
|
|
v-if="!isSharedBase" |
|
|
|
@ -804,7 +808,8 @@ const setIcon = async (icon: string, table: TableType) => {
|
|
|
|
|
overlay-class-name="nc-dropdown-import-menu" |
|
|
|
|
@click.stop |
|
|
|
|
> |
|
|
|
|
<MdiDotsVertical class="transition-opacity opacity-0 group-hover:opacity-100 nc-import-menu outline-0" /> |
|
|
|
|
<MdiDotsVertical |
|
|
|
|
class="transition-opacity opacity-0 group-hover:opacity-100 nc-import-menu outline-0" /> |
|
|
|
|
|
|
|
|
|
<template #overlay> |
|
|
|
|
<a-menu class="!py-0 rounded text-sm"> |
|
|
|
@ -905,7 +910,8 @@ const setIcon = async (icon: string, table: TableType) => {
|
|
|
|
|
> |
|
|
|
|
<div class="flex items-center" @click.stop> |
|
|
|
|
<component :is="isUIAllowed('tableIconCustomisation') ? Tooltip : 'div'"> |
|
|
|
|
<span v-if="table.meta?.icon" :key="table.meta?.icon" class="nc-table-icon flex items-center"> |
|
|
|
|
<span v-if="table.meta?.icon" :key="table.meta?.icon" |
|
|
|
|
class="nc-table-icon flex items-center"> |
|
|
|
|
<Icon |
|
|
|
|
:key="table.meta?.icon" |
|
|
|
|
:data-testid="`nc-icon-${table.meta?.icon}`" |
|
|
|
|