The Guardian is an innovative open-source platform that streamlines the creation, management, and verification of digital environmental assets. It leverages a customizable Policy Workflow Engine and Web3 technology to ensure transparent and fraud-proof operations, making it a key tool for transforming sustainability practices and carbon markets.
Apache License 2.0
99
stars
129
forks
source link
Add an option to hide some buttons in case the policy is discontinued #4067
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
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
Definition of done
buttonBlock
contain a special property to set visibility in case of discontinued policy.