Skip to content
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

Add an option to hide some buttons in case the policy is discontinued #4067

Open
Neurone opened this issue Aug 21, 2024 · 0 comments
Open

Add an option to hide some buttons in case the policy is discontinued #4067

Neurone opened this issue Aug 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Neurone
Copy link
Contributor

Neurone commented Aug 21, 2024

Problem description

When a policy is discontinued, the backend (correctly) doesn't allow any other operations.
On the frontend this seems to be an error because I can still see the buttons for the operations and when I use them I get a 500 error (see screenshots).

Requirements

  • Policy developers can flag a button as available only if the policy is not discontinued.
  • Buttons flagged as hideWhenDiscontinued won't be displayed in the webUI when the policy is discontinued.

Definition of done

  • Buttons in the buttonBlock contain a special property to set visibility in case of discontinued policy.
  • WebUI respects the options set at individual button level
@Neurone Neurone added the enhancement New feature or request label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant