stack action buttons show for stopped and freshly created stacks, regression

This commit is contained in:
Jarek Krochmalski committed 2026-09-14 05:25:04 +02:00
1 parent ee6da80e81
commit 2d9e5e12d6
3 files changed
+40 -1

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
// Whether the stack row's management actions (edit / logs / start / restart /
// stop) should render. They show for a stack in ANY state EXCEPT a git stack that
// has not been deployed yet - that one shows only its dedicated deploy button, so
// the management actions would be redundant. A non-git stack that is stopped or
// freshly created still needs its Start button, so deploy status must not hide the
// management actions. `status` is the raw stack status; a git stack that has never
// deployed is raw "created" (shown as "not deployed" elsewhere).
export function showsManagementActions(sourceType: string | undefined, status: string): boolean {
return !(sourceType === 'git' && status === 'created');
}