diff --git a/src/app/workspace-admin/backend.service.ts b/src/app/workspace-admin/backend.service.ts index 30f8d14a75895a943c1c769abc613b4655623244..3c68bc631f2755fa3617fe0b54c7adcaca7beafc 100644 --- a/src/app/workspace-admin/backend.service.ts +++ b/src/app/workspace-admin/backend.service.ts @@ -179,4 +179,5 @@ export interface FileDeletionReport { deleted: string[]; not_allowed: string[]; did_not_exist: string[]; + was_used: string[]; } diff --git a/src/app/workspace-admin/files/files.component.ts b/src/app/workspace-admin/files/files.component.ts index 6a9713df5637f0c437020c089f2b1d04e48910e1..b98eddb40dfcd9a8504283d97ac6737868448b7b 100644 --- a/src/app/workspace-admin/files/files.component.ts +++ b/src/app/workspace-admin/files/files.component.ts @@ -131,6 +131,10 @@ export class FilesComponent implements OnInit { if (fileDeletionReport.not_allowed.length > 0) { message.push(`${fileDeletionReport.not_allowed.length} Dateien konnten nicht gelöscht werden.`); } + if (fileDeletionReport.was_used.length > 0) { + message.push(`${fileDeletionReport.was_used.length} Dateien werden von anderen verwendet + und wurden nicht gelöscht.`); + } this.snackBar.open(message.join('<br>'), message.length > 1 ? 'Achtung' : '', { duration: 1000 }); this.updateFileList(); });