-
Notifications
You must be signed in to change notification settings - Fork 914
fix!: stop workspace before update #18425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This reverts commit c33f9b9.
42420b1
to
fa2d4eb
Compare
@@ -21,19 +20,39 @@ export interface ActionButtonProps { | |||
tooltipText?: string; | |||
} | |||
|
|||
export const UpdateButton: FC<ActionButtonProps> = ({ | |||
export const UpdateAndStartButton: FC<ActionButtonProps> = ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would probably keep this as one component that takes a prop like isRunning
or something to change the text, since that seems to be the main difference
loading, | ||
}) => { | ||
return ( | ||
<Tooltip title="Stop workspace, if running, and restart it with the latest template version."> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<Tooltip title="Stop workspace, if running, and restart it with the latest template version."> | |
<Tooltip title="Stop workspace and restart it with the latest template version."> |
more confident wording. unless I'm misunderstanding, that's the point of this change.
export const UpdateAndStartButton: FC<ActionButtonProps> = ({ | ||
handleAction, | ||
}) => { | ||
export const UpdateAndStartButtonRequireActiveVersion: FC< |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
similarly, this could also just be an activeVersionRequired
prop, rather than exponentially increasing the number of Update(.+)Button(.+?)
components we have
Fixes #17840
NOTE: calling this out as a breaking change so that it is highly visible in the changelog.
coder update
to stop the workspace if already running.