Changes on contract groups
We added two new buttons: Rename group
and Remove group
below the contract group select.
See: Widget
Rename group button
- when clicking on the button a modal is displayed with an input already prefilled with the name of the group
- clicking on the
UPDATE GROUP
will update the name of the group - clicking on
CANCEL
will close the modal

Services
window.hapi.contract.service.updateContractGroup
with typeContractServiceUpdateContractGroupHandler
from here.
State additions
groupUpdateError
. Check new type here.
API
window.hapi.contract.api.updateContractGroup
. Check arguments here.
Remove group button
when clicking on the button a modal is displayed
if the group has contracts in it:
- it dislay a message
- close button

- if the group does not have contracts in it:
- it display a different message
- clicking on
CANCEL
will close the modal - clicking on
REMOVE GROUP
will remove the group - after group is deleted, the selected group in the dropdown will move on to the next available

Services
window.hapi.contract.service.removeContractGroup
with typeContractServiceRemoveContractGroupHandler
from here.
API
window.hapi.contract.api.removeContractGroup
. Check arguments here.
i18n additions
Key | "en" value | "de" value | "nl" value | "fr" value |
---|---|---|---|---|
contract-group.update | Rename group | Gruppe umbenennen | Groep hernoemen | Renommer le groupe |
contract.update-contract-group-confirmation.title | Are you sure that you want to update the group? | Sind Sie sicher, dass Sie die Gruppe aktualisieren möchten? | Weet u zeker dat u de groep wilt bijwerken? | Êtes-vous sûr de vouloir mettre à jour le groupe ? |
contracts.update-contract-group.name | Name | Name | Naam | Nom |
contracts.update-contract-group.name-placeholder | Name | Name | Naam | Nom |
contract.update-contract-group-confirmation.decline | Cancel | Abbrechen | Annuleren | Annuler |
contract.update-contract-group-confirmation.accept | Update Group | Gruppe aktualisieren | Groep bijwerken | Mettre à jour le groupe |
contract.group.update.success | Contract group {groupName} has been updated | Vertragsgruppe {groupName} wurde aktualisiert | Contractgroep {groupName} is bijgewerkt | Le groupe de contrats {groupName} a été mis à jour |
contract-group.delete | Remove group | Gruppe entfernen | Groep verwijderen | Supprimer le groupe |
contract.remove-contract-group-confirmation.title | You must delete the contracts in this group before deleting the group: | Sie müssen die Verträge in dieser Gruppe löschen, bevor Sie die Gruppe löschen können: | U moet de contracten in deze groep verwijderen voordat u de groep kunt verwijderen: | Vous devez supprimer les contrats de ce groupe avant de pouvoir supprimer le groupe : |
contract.remove-contract-group-confirmation.description | Are you sure that you want to remove the group? | Sind Sie sicher, dass Sie die Gruppe entfernen möchten? | Weet u zeker dat u de groep wilt verwijderen? | Êtes-vous sûr de vouloir supprimer le groupe ? |
contract.remove-contract-group-confirmation.accept | Remove Group | Gruppe entfernen | Groep verwijderen | Supprimer le groupe |
contract.remove-contract-group-confirmation.decline | Cancel | Abbrechen | Annuleren | Annuler |
contract.group.remove.success | Contract group {groupName} has been removed | Vertragsgruppe {groupName} wurde entfernt | Contractgroep {groupName} is verwijderd | Le groupe de contrats {groupName} a été supprimé |
HTML IDs And Class Additions
As part of this change the following HTML IDs and Class have been added:
hapi__contract-update-contract-group-modal
contract-filter-channel-name-input
contract-group-remove-button
contract-group-remove-success-alert
contract-group-update-button
contract-group-update-input
contract-group-update-decline-button
contract-group-update-accept-button
contract-group-update-success-alert