From 1877cfed81d3075b265c2fa78db467d8928b6e3b Mon Sep 17 00:00:00 2001 From: Anton Standrik Date: Wed, 12 Nov 2025 12:19:10 +0300 Subject: [PATCH] feat: pass controlplane and userattributes to get links --- src/containers/Header/Header.tsx | 2 ++ src/utils/monitoring.ts | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/containers/Header/Header.tsx b/src/containers/Header/Header.tsx index 8914aa5a58..fbbb4915f7 100644 --- a/src/containers/Header/Header.tsx +++ b/src/containers/Header/Header.tsx @@ -99,6 +99,8 @@ function Header() { clusterName, dbName: databaseData.Name, dbType: databaseData.Type, + controlPlane: databaseData.ControlPlane, + userAttributes: databaseData.UserAttributes, }) : null; diff --git a/src/utils/monitoring.ts b/src/utils/monitoring.ts index bf8a10c1b8..eecd139ff4 100644 --- a/src/utils/monitoring.ts +++ b/src/utils/monitoring.ts @@ -1,11 +1,13 @@ import type {MetaBaseClusterInfo, MetaClusterMonitoringData} from '../types/api/meta'; -import type {ETenantType} from '../types/api/tenant'; +import type {ETenantType, TTenant} from '../types/api/tenant'; interface GetMonitoringLinkProps { monitoring: MetaBaseClusterInfo['solomon']; dbName: string; dbType: ETenantType; clusterName?: string; + controlPlane?: TTenant['ControlPlane']; + userAttributes?: TTenant['UserAttributes']; } export type GetMonitoringLink = typeof getMonitoringLink;