fix: 调试发布run

This commit is contained in:
npc0-hue
2026-07-22 11:44:48 +08:00
parent b06623d0ce
commit 6c3eb6e45f
41 changed files with 1289 additions and 206 deletions
+2 -2
View File
@@ -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";
}