Skip to content

feat: disable start/restart if active version required #10809

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

Merged
merged 4 commits into from
Nov 22, 2023
Merged

Conversation

sreya
Copy link
Collaborator

@sreya sreya commented Nov 21, 2023

fixes #10755

Variants:

Template Required
image

User opted-in

image

Also Restart:

image

@sreya sreya requested a review from BrunoQuaresma November 21, 2023 00:33
if (workspace.automatic_updates === "always") {
return "You have enabled automatic updates for this workspace";
}
return "";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just found strange to have two places returning "" 🤔

Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@BrunoQuaresma
Copy link
Collaborator

BrunoQuaresma commented Nov 21, 2023

Question. Do we also want to disable the secondary action on start and restart? Both actions have a secondary action that can start/restart using ephemeral parameters. It is on the button with the "dropdown icon".
Screenshot 2023-11-21 at 09 21 40

@sreya
Copy link
Collaborator Author

sreya commented Nov 21, 2023

Question. Do we also want to disable the secondary action on start and restart? Both actions have a secondary action that can start/restart using ephemeral parameters. It is on the button with the "dropdown icon". Screenshot 2023-11-21 at 09 21 40

Yeah we def do, thanks ❤️

@sreya sreya merged commit 782fe84 into main Nov 22, 2023
@sreya sreya deleted the jon/disabledbuttons branch November 22, 2023 00:06
@github-actions github-actions bot locked and limited conversation to collaborators Nov 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

template update policies: explain why start is disabled
2 participants