|
|
@ -40,6 +40,8 @@ const vDataState = useVModel(props, 'dataSourcesState', emits) |
|
|
|
|
|
|
|
|
|
|
|
const baseId = toRef(props, 'baseId') |
|
|
|
const baseId = toRef(props, 'baseId') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { isUIAllowed } = useRoles() |
|
|
|
|
|
|
|
|
|
|
|
provide(ProjectIdInj, baseId) |
|
|
|
provide(ProjectIdInj, baseId) |
|
|
|
|
|
|
|
|
|
|
|
const { $e } = useNuxtApp() |
|
|
|
const { $e } = useNuxtApp() |
|
|
@ -180,7 +182,11 @@ 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 v-for="(tab, key) of tabsInfo" :key="key" class="active:(!ring-0) hover:(!bg-primary !bg-opacity-25)"> |
|
|
|
<template v-for="(tab, key) of tabsInfo" :key="key"> |
|
|
|
|
|
|
|
<a-menu-item |
|
|
|
|
|
|
|
v-if="key !== 'dataSources' || isUIAllowed('sourceCreate')" |
|
|
|
|
|
|
|
class="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" /> |
|
|
|
<component :is="tab.icon" /> |
|
|
|
|
|
|
|
|
|
|
@ -189,6 +195,7 @@ watch( |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-menu-item> |
|
|
|
</a-menu-item> |
|
|
|
|
|
|
|
</template> |
|
|
|
</a-menu> |
|
|
|
</a-menu> |
|
|
|
</a-layout-sider> |
|
|
|
</a-layout-sider> |
|
|
|
|
|
|
|
|
|
|
|