From d316dfd4713167f2ad3ef29da6a9a8fc1ca13a73 Mon Sep 17 00:00:00 2001 From: trivernis Date: Sat, 15 Jan 2022 21:50:52 +0100 Subject: [PATCH] Fix file context menu not showing delete permanently option Signed-off-by: trivernis --- .../shared/file/file-context-menu/file-context-menu.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/mediarepo-ui/src/app/components/shared/file/file-context-menu/file-context-menu.component.ts b/mediarepo-ui/src/app/components/shared/file/file-context-menu/file-context-menu.component.ts index b65e4d3..9db4dcf 100644 --- a/mediarepo-ui/src/app/components/shared/file/file-context-menu/file-context-menu.component.ts +++ b/mediarepo-ui/src/app/components/shared/file/file-context-menu/file-context-menu.component.ts @@ -90,6 +90,7 @@ export class FileContextMenuComponent { } private applyStatus() { + this.actionDeletePermantently = true; for (const file of this.files) { this.actionDeletePermantently &&= file.status === "Deleted"; this.actionDelete ||= file.status !== "Deleted";