fix: instance events namespace
This commit is contained in:
@@ -358,7 +358,7 @@ export default (props: any) => {
|
|||||||
config={{
|
config={{
|
||||||
apiBaseUrl: GPUSTACK_API_BASE_URL,
|
apiBaseUrl: GPUSTACK_API_BASE_URL,
|
||||||
theme: userSettings.theme,
|
theme: userSettings.theme,
|
||||||
iconUrl: '//at.alicdn.com/t/c/font_4613488_vy4szhexci.js',
|
iconUrl: '//at.alicdn.com/t/c/font_4613488_0ear6uwu4lzg.js',
|
||||||
isDarkTheme: userSettings.isDarkTheme,
|
isDarkTheme: userSettings.isDarkTheme,
|
||||||
defaultColorPrimary: COLOR_PRIMARY
|
defaultColorPrimary: COLOR_PRIMARY
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { currentClusterAtom } from '@/atoms/gpuservice';
|
import { currentClusterAtom } from '@/atoms/gpuservice';
|
||||||
import { getCurrentOrganizationId } from '@/atoms/user';
|
import { getCurrentOrgNamespace } from '@/atoms/user';
|
||||||
import { useQueryData } from '@gpustack/core-ui';
|
import { useQueryData } from '@gpustack/core-ui';
|
||||||
import { useAtomValue } from 'jotai';
|
import { useAtomValue } from 'jotai';
|
||||||
import { useCallback } from 'react';
|
import { useCallback } from 'react';
|
||||||
@@ -12,9 +12,9 @@ interface QueryInstanceEventsParams {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default function useQueryInstanceEvents() {
|
export default function useQueryInstanceEvents() {
|
||||||
const namespace = getCurrentOrganizationId();
|
|
||||||
const currentCluster = useAtomValue(currentClusterAtom);
|
const currentCluster = useAtomValue(currentClusterAtom);
|
||||||
const clusterID = currentCluster?.id;
|
const clusterID = currentCluster?.id;
|
||||||
|
const namespace = getCurrentOrgNamespace(currentCluster?.owner_principal_id);
|
||||||
|
|
||||||
const fetchDetail = useCallback(
|
const fetchDetail = useCallback(
|
||||||
(params: QueryInstanceEventsParams, options?: any) =>
|
(params: QueryInstanceEventsParams, options?: any) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user