fix: ssh key, template test
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { icons } from '@gpustack/core-ui';
|
||||
import { ImagePullPolicy } from './types';
|
||||
|
||||
export const TemplateStatusValueMap = {
|
||||
Enabled: 'enabled',
|
||||
@@ -6,19 +7,45 @@ export const TemplateStatusValueMap = {
|
||||
};
|
||||
|
||||
export const TemplateStatusLabelMap: Record<string, string> = {
|
||||
[TemplateStatusValueMap.Enabled]: '启用',
|
||||
[TemplateStatusValueMap.Disabled]: '禁用'
|
||||
[TemplateStatusValueMap.Enabled]: 'common.button.enable',
|
||||
[TemplateStatusValueMap.Disabled]: 'common.button.disable'
|
||||
};
|
||||
|
||||
export const ImagePullPolicyOptions: {
|
||||
label: string;
|
||||
value: ImagePullPolicy;
|
||||
locale: boolean;
|
||||
}[] = [
|
||||
{
|
||||
label: 'gpuservice.template.imagePullPolicy.always',
|
||||
value: 'Always',
|
||||
locale: true
|
||||
},
|
||||
{
|
||||
label: 'gpuservice.template.imagePullPolicy.ifNotPresent',
|
||||
value: 'IfNotPresent',
|
||||
locale: true
|
||||
},
|
||||
{
|
||||
label: 'gpuservice.template.imagePullPolicy.never',
|
||||
value: 'Never',
|
||||
locale: true
|
||||
}
|
||||
];
|
||||
|
||||
export const DefaultImagePullPolicy: ImagePullPolicy = 'IfNotPresent';
|
||||
|
||||
export const templateActions = [
|
||||
{
|
||||
label: '编辑',
|
||||
label: 'common.button.edit',
|
||||
key: 'edit',
|
||||
locale: true,
|
||||
icon: icons.EditOutlined
|
||||
},
|
||||
{
|
||||
label: '删除',
|
||||
label: 'common.button.delete',
|
||||
key: 'delete',
|
||||
locale: true,
|
||||
icon: icons.DeleteOutlined,
|
||||
danger: true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user