Skip to content

Commit 1731160

Browse files
committed
fix(site): don't show start button while starting
1 parent 44a70a5 commit 1731160

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

site/src/pages/WorkspacePage/WorkspaceActions/WorkspaceActions.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ export const WorkspaceActions: FC<WorkspaceActionsProps> = ({
173173
)}
174174

175175
{!canBeUpdated &&
176+
!isUpdating &&
176177
workspace.template_require_active_version &&
177178
buttonMapping.start}
178179

@@ -244,11 +245,7 @@ function getTooltipText(
244245
return "";
245246
}
246247

247-
if (
248-
!mustUpdate &&
249-
canChangeVersions &&
250-
workspace.template_require_active_version
251-
) {
248+
if (!mustUpdate && canChangeVersions) {
252249
return "This template requires automatic updates on workspace startup, but template administrators can ignore this policy.";
253250
}
254251

0 commit comments

Comments
 (0)