In Settings, when attempting to delete a pick list which has 0 pick list values, and is in use on a supplementary property, a technical error message is displayed. Instead a user-friendly error message should be displayed.
Steps to generate error:
- In Settings > Agreements > Pick lists, add a new pick list. Do not add any pick list values.
- In Settings > Agreements > Supplementary Properties, add a new supp prop with Type=Pick list or Pick list multi-select
- Go back to Settings > Agreements > Pick lists and delete the pick list. A callout is displayed with the message:
Instead the message should read:
Error: Pick list picklist-name was not deleted. This is likely to be because it has been applied to one or more supplementary properties. To fix, remove the pick list from all supplementary properties, then try to delete the pick list again.
This follows on from
I believe this should be as simple as adding a translation:
This is the relevant translation: https://github.com/folio-org/ui-agreements/blob/master/translations/ui-agreements/en.json#L727