From 6736942502def96427aa703ba62a16d83ce01ce5 Mon Sep 17 00:00:00 2001 From: domsteinbach <36757218+domsteinbach@users.noreply.github.com> Date: Mon, 17 Jul 2023 09:12:18 +0200 Subject: [PATCH] fix(delete value button): evaluate users permissions to enable/disable delete button (#1138) --- .../display-edit/display-edit.component.html | 2 +- .../display-edit/display-edit.component.ts | 2 ++ .../properties/properties.component.html | 13 ++++++++++--- .../resource/properties/properties.component.ts | 17 ++++++++++++++--- 4 files changed, 27 insertions(+), 7 deletions(-) diff --git a/apps/dsp-app/src/app/workspace/resource/operations/display-edit/display-edit.component.html b/apps/dsp-app/src/app/workspace/resource/operations/display-edit/display-edit.component.html index a3d310789a..34abdfea69 100644 --- a/apps/dsp-app/src/app/workspace/resource/operations/display-edit/display-edit.component.html +++ b/apps/dsp-app/src/app/workspace/resource/operations/display-edit/display-edit.component.html @@ -170,7 +170,7 @@ [matTooltip]=" canDelete ? 'delete' - : 'This value cannot be deleted because at least one value is required' + : cantDeleteReason " >