Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(nc-gui): ws settings page - hide some tabs and banner in mobile mode

Ramesh Maneebe8f335a5d8
diff --git a/packages/nc-gui/components/workspace/View.vue b/packages/nc-gui/components/workspace/View.vue
index 61c030f813..d26a64e989 100644
--- a/packages/nc-gui/components/workspace/View.vue
+++ b/packages/nc-gui/components/workspace/View.vue
@@ -198,45 +198,49 @@ onBeforeUnmount(() => {
<WorkspaceCollaboratorsList :workspace-id="currentWorkspace.id" />
</a-tab-pane>
</template>
- <template
- v-if="isEeUI && !props.workspaceId && !currentWorkspace?.fk_org_id && isPaymentEnabled && isUIAllowed('workspaceBilling')"
- >
- <a-tab-pane key="billing" class="w-full">
- <template #tab>
- <div class="tab-title" data-testid="nc-workspace-settings-tab-billing">
- <GeneralIcon icon="ncDollarSign" class="flex-none h-4 w-4" />
- {{ $t('general.billing') }}
- </div>
- </template>
-
- <PaymentBillingPage />
- </a-tab-pane>
- </template>
-
- <template v-if="isEeUI && !props.workspaceId && isWsAuditEnabled && isUIAllowed('workspaceAuditList')">
- <a-tab-pane key="audits" class="w-full">
- <template #tab>
- <div class="tab-title" data-testid="nc-workspace-settings-tab-audits">
- <GeneralIcon icon="audit" class="h-4 w-4" />
- {{ $t('title.audits') }}
- </div>
- </template>
- <WorkspaceAudits v-if="isWsAuditEnabled" />
- <div v-else>&nbsp;</div>
- </a-tab-pane>
- </template>
+ <template v-if="!isMobileMode">
+ <template
+ v-if="
+ isEeUI && !props.workspaceId && !currentWorkspace?.fk_org_id && isPaymentEnabled && isUIAllowed('workspaceBilling')
+ "
+ >
+ <a-tab-pane key="billing" class="w-full">
+ <template #tab>
+ <div class="tab-title" data-testid="nc-workspace-settings-tab-billing">
+ <GeneralIcon icon="ncDollarSign" class="flex-none h-4 w-4" />
+ {{ $t('general.billing') }}
+ </div>
+ </template>
+
+ <PaymentBillingPage />
+ </a-tab-pane>
+ </template>
- <template v-if="isWorkspaceSsoAvail && !currentWorkspace?.fk_org_id && isUIAllowed('workspaceSSO')">
- <a-tab-pane key="sso" class="w-full">
- <template #tab>
- <div class="tab-title" data-testid="nc-workspace-settings-tab-billing">
- <GeneralIcon icon="sso" class="flex-none h-4 w-4" />
- {{ $t('title.sso') }}
- </div>
- </template>
+ <template v-if="isEeUI && !props.workspaceId && isWsAuditEnabled && isUIAllowed('workspaceAuditList')">
+ <a-tab-pane key="audits" class="w-full">
+ <template #tab>
+ <div class="tab-title" data-testid="nc-workspace-settings-tab-audits">
+ <GeneralIcon icon="audit" class="h-4 w-4" />
+ {{ $t('title.audits') }}
+ </div>
+ </template>
+ <WorkspaceAudits v-if="isWsAuditEnabled" />
+ <div v-else>&nbsp;</div>
+ </a-tab-pane>
+ </template>
- <WorkspaceSso class="!h-[calc(100vh_-_92px)]" />
- </a-tab-pane>
+ <template v-if="isWorkspaceSsoAvail && !currentWorkspace?.fk_org_id && isUIAllowed('workspaceSSO')">
+ <a-tab-pane key="sso" class="w-full">
+ <template #tab>
+ <div class="tab-title" data-testid="nc-workspace-settings-tab-billing">
+ <GeneralIcon icon="sso" class="flex-none h-4 w-4" />
+ {{ $t('title.sso') }}
+ </div>
+ </template>
+
+ <WorkspaceSso class="!h-[calc(100vh_-_92px)]" />
+ </a-tab-pane>
+ </template>
</template>
<a-tab-pane key="settings" class="w-full">