|
|
@ -178,13 +178,9 @@ watch( |
|
|
|
<!-- Side tabs --> |
|
|
|
<!-- Side tabs --> |
|
|
|
<a-layout-sider> |
|
|
|
<a-layout-sider> |
|
|
|
<a-menu v-model:selected-keys="selectedTabKeys" class="tabs-menu h-full" :open-keys="[]"> |
|
|
|
<a-menu v-model:selected-keys="selectedTabKeys" class="tabs-menu h-full" :open-keys="[]"> |
|
|
|
<a-menu-item |
|
|
|
<a-menu-item v-for="(tab, key) of tabsInfo" :key="key" class="active:(!ring-0) hover:(!bg-primary !bg-opacity-25)"> |
|
|
|
v-for="(tab, key) of tabsInfo" |
|
|
|
|
|
|
|
:key="key" |
|
|
|
|
|
|
|
class="group active:(!ring-0) hover:(!bg-primary !bg-opacity-25)" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<div class="flex items-center space-x-2" @click="tab.onClick"> |
|
|
|
<div class="flex items-center space-x-2" @click="tab.onClick"> |
|
|
|
<component :is="tab.icon" class="group-hover:text-accent" /> |
|
|
|
<component :is="tab.icon" /> |
|
|
|
|
|
|
|
|
|
|
|
<div class="select-none"> |
|
|
|
<div class="select-none"> |
|
|
|
{{ tab.title }} |
|
|
|
{{ tab.title }} |
|
|
@ -223,10 +219,10 @@ watch( |
|
|
|
<div v-if="vDataState === ''" class="flex flex-row justify-end items-center w-full gap-1"> |
|
|
|
<div v-if="vDataState === ''" class="flex flex-row justify-end items-center w-full gap-1"> |
|
|
|
<a-button |
|
|
|
<a-button |
|
|
|
v-if="dataSourcesAwakened" |
|
|
|
v-if="dataSourcesAwakened" |
|
|
|
class="self-start nc-btn-new-datasource" |
|
|
|
class="self-start !rounded-md nc-btn-new-datasource" |
|
|
|
@click="vDataState = DataSourcesSubTab.New" |
|
|
|
@click="vDataState = DataSourcesSubTab.New" |
|
|
|
> |
|
|
|
> |
|
|
|
<div v-if="vDataState === ''" class="flex items-center gap-2 text-primary font-light"> |
|
|
|
<div v-if="vDataState === ''" class="flex items-center gap-2 font-light"> |
|
|
|
<component :is="iconMap.plusCircle" class="group-hover:text-accent" /> |
|
|
|
<component :is="iconMap.plusCircle" class="group-hover:text-accent" /> |
|
|
|
New |
|
|
|
New |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -234,7 +230,8 @@ watch( |
|
|
|
<!-- Reload --> |
|
|
|
<!-- Reload --> |
|
|
|
<a-button |
|
|
|
<a-button |
|
|
|
v-e="['a:proj-meta:data-sources:reload']" |
|
|
|
v-e="['a:proj-meta:data-sources:reload']" |
|
|
|
class="self-start nc-btn-metasync-reload" |
|
|
|
type="text" |
|
|
|
|
|
|
|
class="self-start !rounded-md nc-btn-metasync-reload" |
|
|
|
@click="dataSourcesReload = true" |
|
|
|
@click="dataSourcesReload = true" |
|
|
|
> |
|
|
|
> |
|
|
|
<div class="flex items-center gap-2 text-gray-600 font-light"> |
|
|
|
<div class="flex items-center gap-2 text-gray-600 font-light"> |
|
|
|