diff --git a/projects/valtimo/config/assets/core/de.json b/projects/valtimo/config/assets/core/de.json index bfd114ed4..c4124cd86 100644 --- a/projects/valtimo/config/assets/core/de.json +++ b/projects/valtimo/config/assets/core/de.json @@ -160,6 +160,12 @@ "cancel": "Absagen", "delete": "Löschen" }, + "delete": { + "delete": "Case löschen", + "title": "Case löschen", + "description": "Möchten Sie diesen Case und alle zugehörigen Informationen wirklich löschen? Diese Aktion kann nicht rückgängig gemacht werden.", + "confirm": "Löschen" + }, "formio": { "noFormSpecified": "Für diese Registerkarte wurde keine Formulardefinition angegeben.", "formNotFound": "Die Formulardefinition '{{formDefinitionName}}' konnte nicht gefunden werden." diff --git a/projects/valtimo/config/assets/core/en.json b/projects/valtimo/config/assets/core/en.json index c2e3176d4..158f88135 100644 --- a/projects/valtimo/config/assets/core/en.json +++ b/projects/valtimo/config/assets/core/en.json @@ -160,6 +160,12 @@ "cancel": "Cancel", "delete": "Delete" }, + "delete": { + "delete": "Delete case", + "title": "Delete case", + "description": "Are you sure you want to delete this case and all related information? This action cannot be undone.", + "confirm": "Delete" + }, "formio": { "noFormSpecified": "No form definition has been specified for this tab.", "formNotFound": "The form definition '{{formDefinitionName}}' could not be found." diff --git a/projects/valtimo/config/assets/core/nl.json b/projects/valtimo/config/assets/core/nl.json index 25d850102..624e637d9 100644 --- a/projects/valtimo/config/assets/core/nl.json +++ b/projects/valtimo/config/assets/core/nl.json @@ -160,6 +160,12 @@ "cancel": "Annuleren", "delete": "Verwijderen" }, + "delete": { + "delete": "Dossier verwijderen", + "title": "Dossier verwijderen", + "description": "Weet u zeker dat u dit dossier en alle gerelateerde informatie wilt verwijderen? Deze actie kan niet ongedaan worden gemaakt.", + "confirm": "Verwijderen" + }, "formio": { "noFormSpecified": "Voor dit tabblad is geen formulierdefinitie opgegeven.", "formNotFound": "De formulierdefinitie '{{formDefinitionName}}' kan niet worden gevonden." diff --git a/projects/valtimo/document/src/lib/services/document.service.ts b/projects/valtimo/document/src/lib/services/document.service.ts index bd7b4db8f..ee9aa3f04 100644 --- a/projects/valtimo/document/src/lib/services/document.service.ts +++ b/projects/valtimo/document/src/lib/services/document.service.ts @@ -274,6 +274,10 @@ export class DocumentService { return this.http.put(`${this.valtimoEndpointUri}v1/document`, document); } + public deleteDocument(documentId: string): Observable { + return this.http.delete(`${this.valtimoEndpointUri}v1/document/${documentId}`); + } + // ProcessDocument-calls public getProcessDocumentDefinitions(): Observable { return this.http.get( diff --git a/projects/valtimo/dossier/src/lib/components/dossier-detail/dossier-detail.component.html b/projects/valtimo/dossier/src/lib/components/dossier-detail/dossier-detail.component.html index f74bca788..01172662b 100644 --- a/projects/valtimo/dossier/src/lib/components/dossier-detail/dossier-detail.component.html +++ b/projects/valtimo/dossier/src/lib/components/dossier-detail/dossier-detail.component.html @@ -182,6 +182,17 @@ + + + {{ 'dossier.delete.delete' | translate }} + + +