bcgov/MFIN-Data-Catalogue

"Unpublish" button is displayed to Manager when a record is already unpublished?

Closed this issue · 2 comments

OP timer

https://openplus.monday.com/boards/4092908516/pulses/6578633388


Describe the bug

Metadata management screen, logged in as a Manager. The presence of the "Unpublish" button seems contradictory.

image

Other records have different combos of buttons based on the conditions of the user (did they author the MR? what Org membership does the user have? Is the MR published?)

image

Should "Draft" moderation state have the Unpublish button?

Agree. It can be confusing to users to see a button to do a thing that's done already. If you do try to unpublish an unpublished record it will give you an error message, which is good, but best would be if the button wasn't there at all

verified in dev