From 6fddddd9f4b5f419c51d0faff6159e0868524a75 Mon Sep 17 00:00:00 2001 From: Sean Date: Mon, 23 Mar 2020 15:42:32 +0100 Subject: [PATCH] Allow empty input values in recommendation Allows the client to send empty values as workflow recommendation label in the workflow detail view. This is required to remove a recommendation from a workflow --- .../workflow-detail.component.html | 17 +++++++++-------- .../workflow-detail.component.ts | 13 ++++++++++--- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/client/src/app/site/motions/modules/motion-workflow/components/workflow-detail/workflow-detail.component.html b/client/src/app/site/motions/modules/motion-workflow/components/workflow-detail/workflow-detail.component.html index 43df33caa..4a1d4333b 100644 --- a/client/src/app/site/motions/modules/motion-workflow/components/workflow-detail/workflow-detail.component.html +++ b/client/src/app/site/motions/modules/motion-workflow/components/workflow-detail/workflow-detail.component.html @@ -34,7 +34,10 @@ - +
@@ -49,16 +52,14 @@ (change)="onToggleStatePerm(state, perm.selector, $event)" >
-
+
{{ (state[perm.selector] | translate) || '–' }}
+ >
- {{ getRestrictionLabel(restriction) | translate - }} + {{ getRestrictionLabel(restriction) | translate }} +
@@ -138,7 +139,7 @@