Removing and replacing CodeValues
grin-global/grin-global-server!359 prevents that a CodeValue
that is in use is removed. Please display a snack with the message that the code could not be removed when clicking "Remove" button.
Replace dialog
Second, the MR adds support to replace one CodeValue
for another at .../replace
endpoint. Please add a button "Replace" that will display a dialog for the user to select one of the other values of this CodeValue.groupName
:
The dialog should have a title "Replace code value", a text that says "This will change the database and all cases where {current.value} is used will be replaced with {replacement.value}. The {current.value} CodeValue option will then be removed.".
The list of options should display the table with the radio select, but without the current
option listed:
Removing multiple values of one group
I would like to select multiple CodeValues
of the group:
And trigger a "Remove selected" function. This should call the DELETE .../many
endpoint with a list of selected values.
Note that some removals may fail, some may succeed. A reload of CodeValues in Redux should be performed and a snack should inform the user about successful/failed removals.