fix: 调试发布run
This commit is contained in:
@@ -8,7 +8,7 @@ import type {
|
||||
|
||||
export type ServerWorkflowViewState = "api" | "local" | "saving";
|
||||
export type ServerLifecycleActionLabel = "create" | "start" | "stop" | "refresh";
|
||||
export type ServerRemovalAction = "archive";
|
||||
export type ServerRemovalAction = "delete";
|
||||
|
||||
export interface ServerCreateFormState {
|
||||
id: string;
|
||||
@@ -136,6 +136,6 @@ export function serverMetadataFormFromInstance(instance: ServerInstanceResponse)
|
||||
return { name: instance.name };
|
||||
}
|
||||
|
||||
export function canArchiveServer(state: ServerInstanceState): boolean {
|
||||
export function canDeleteServer(state: ServerInstanceState): boolean {
|
||||
return state !== "running" && state !== "installing" && state !== "deleted";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user