feat: add back to base button in non base routes

This commit is contained in:
Ramesh Mane
2026-02-25 07:41:49 +00:00
parent 28d3e7ceb4
commit 919770bac6
5 changed files with 101 additions and 5 deletions

View File

@@ -14,6 +14,8 @@ const { loadCollaborators } = workspaceStore
const { isFromIntegrationPage, integrationPaginationData, activeViewTab, loadIntegrations } = useProvideIntegrationViewStore()
const { shouldShow: btbShouldShow } = useBackToBase()
const currentWorkspace = computedAsync(async () => {
await loadRoles(undefined, {}, _activeWorkspace.value?.id)
return _activeWorkspace.value
@@ -64,7 +66,11 @@ onBeforeMount(() => {
{{ $t('general.integrations') }}
</h1>
</div>
</div>
<DashboardBackToBaseBreadcrumbVariant />
<NcTabs v-model:active-key="activeViewTab">
<template #leftExtra>
<div class="w-3"></div>
@@ -77,7 +83,7 @@ onBeforeMount(() => {
{{ $t('general.integrations') }}
</div>
</template>
<div class="h-[calc(100vh-92px)]">
<div :class="btbShouldShow ? 'h-[calc(100vh-128px)]' : 'h-[calc(100vh-92px)]'">
<WorkspaceIntegrationsTab show-filter />
</div>
</a-tab-pane>
@@ -100,7 +106,7 @@ onBeforeMount(() => {
</div>
</div>
</template>
<div class="h-[calc(100vh-92px)] p-6">
<div :class="[btbShouldShow ? 'h-[calc(100vh-128px)]' : 'h-[calc(100vh-92px)]', 'p-6']">
<WorkspaceIntegrationsConnectionsTab />
</div>
</a-tab-pane>