style: workers page no page container
This commit is contained in:
@@ -7,5 +7,5 @@ export const DEFAULT_ENTER_PAGE = {
|
||||
login: '/login'
|
||||
};
|
||||
|
||||
export const GPUSTACK_API_BASE_URL = 'v1';
|
||||
export const GPUSTACK_API_BASE_URL = 'v2';
|
||||
export const OPENAI_COMPATIBLE = 'v1';
|
||||
|
||||
@@ -31,6 +31,7 @@ export function useUpdateChunkedList(options: {
|
||||
cacheDataListRef.current = [...(options.dataList || [])];
|
||||
}, [options.dataList]);
|
||||
|
||||
// use to clear the table row selection after delete
|
||||
const setDeletedIds = (ids: number[]) => {
|
||||
deletedIdsRef.current = new Set([...deletedIdsRef.current, ...ids]);
|
||||
};
|
||||
|
||||
@@ -117,6 +117,7 @@ export const ExtraContent = (props: { isDarkTheme?: boolean }) => {
|
||||
|
||||
const loginPath = DEFAULT_ENTER_PAGE.login;
|
||||
|
||||
// only admin can see upgrade info, and current version is a prod version(exclude dev/rc)
|
||||
const showUpgrade = useMemo(() => {
|
||||
return (
|
||||
initialState?.currentUser?.is_admin &&
|
||||
|
||||
@@ -45,7 +45,8 @@ const NO_CONTAINER_PAGES = [
|
||||
'image',
|
||||
'text2images',
|
||||
'clusterDetail',
|
||||
'clusterCreate'
|
||||
'clusterCreate',
|
||||
'workers'
|
||||
];
|
||||
|
||||
const loginPath = DEFAULT_ENTER_PAGE.login;
|
||||
|
||||
@@ -6,7 +6,6 @@ import InfoColumn from '@/components/simple-table/info-column';
|
||||
import StatusTag from '@/components/status-tag';
|
||||
import { convertFileSize } from '@/utils';
|
||||
import {
|
||||
CodeOutlined,
|
||||
DeleteOutlined,
|
||||
DownloadOutlined,
|
||||
EditOutlined,
|
||||
@@ -50,7 +49,7 @@ const ActionList = [
|
||||
// key: 'logs',
|
||||
// icon: <IconFont type="icon-logs" />
|
||||
// },
|
||||
{ label: 'common.button.terminal', key: 'terminal', icon: <CodeOutlined /> },
|
||||
// { label: 'common.button.terminal', key: 'terminal', icon: <CodeOutlined /> },
|
||||
{
|
||||
label: 'common.button.delete',
|
||||
key: 'delete',
|
||||
|
||||
Reference in New Issue
Block a user