From 1ece8b9f0d3490449623b60554c98a529365b6bb Mon Sep 17 00:00:00 2001 From: samaradel Date: Wed, 16 Oct 2024 14:42:24 +0300 Subject: [PATCH 1/2] Fix Domains page view before login --- .../playground/src/components/node_selector/TfDomainName.vue | 1 - packages/playground/src/router/index.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/playground/src/components/node_selector/TfDomainName.vue b/packages/playground/src/components/node_selector/TfDomainName.vue index b5863adfec..a67d7ca937 100644 --- a/packages/playground/src/components/node_selector/TfDomainName.vue +++ b/packages/playground/src/components/node_selector/TfDomainName.vue @@ -147,7 +147,6 @@ export default { size: window.env.PAGE_SIZE, page: Math.max(1, pagination.value.page), farmId: enableCustomDomain.value ? props.farm?.farmId : undefined, - availableFor: gridStore.client.twinId, })); const selectedDomain = ref(null); const loadDomains = () => domainsTask.value.run(gridStore, filters.value); diff --git a/packages/playground/src/router/index.ts b/packages/playground/src/router/index.ts index caf2af262a..eba19a5397 100644 --- a/packages/playground/src/router/index.ts +++ b/packages/playground/src/router/index.ts @@ -609,7 +609,7 @@ function createDeployRoutes(): RouteRecordRaw[] { { path: DashboardRoutes.Deploy.Domains, component: () => import("@/views/domains_view.vue"), - meta: { title: "Domains", publicPath: true }, + meta: { title: "Domains" }, }, { path: DashboardRoutes.Deploy.NodeFinder, From cc17bf59222681b860204d55ccae0eafd3f00d0f Mon Sep 17 00:00:00 2001 From: samaradel Date: Wed, 16 Oct 2024 17:20:59 +0300 Subject: [PATCH 2/2] Check if there client in gridstore --- .../playground/src/components/node_selector/TfDomainName.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/playground/src/components/node_selector/TfDomainName.vue b/packages/playground/src/components/node_selector/TfDomainName.vue index a67d7ca937..ec3ad27412 100644 --- a/packages/playground/src/components/node_selector/TfDomainName.vue +++ b/packages/playground/src/components/node_selector/TfDomainName.vue @@ -147,6 +147,7 @@ export default { size: window.env.PAGE_SIZE, page: Math.max(1, pagination.value.page), farmId: enableCustomDomain.value ? props.farm?.farmId : undefined, + availableFor: gridStore.client?.twinId, })); const selectedDomain = ref(null); const loadDomains = () => domainsTask.value.run(gridStore, filters.value);