From a904ab90dae9dd332366fa184df755612a787a01 Mon Sep 17 00:00:00 2001 From: elinuxhenrik Date: Wed, 20 May 2020 16:59:03 +0200 Subject: [PATCH] Add heading for Ric in instance dialogs Show Ric for existing policy in dialogs. Change-Id: Ieaf200eff5772af2966134493f803d978ca73c54 Issue-ID: NONRTRIC-212 Signed-off-by: elinuxhenrik --- .../src/test/resources/demo-policy-schema-3.json | 2 +- .../no-type-policy-instance-dialog.component.html | 26 +++++++++++++--------- .../policy-instance-dialog.component.html | 14 +++++++----- .../policy-control/policy-instance.component.html | 2 +- 4 files changed, 27 insertions(+), 17 deletions(-) diff --git a/webapp-backend/src/test/resources/demo-policy-schema-3.json b/webapp-backend/src/test/resources/demo-policy-schema-3.json index 695514c..18bce36 100644 --- a/webapp-backend/src/test/resources/demo-policy-schema-3.json +++ b/webapp-backend/src/test/resources/demo-policy-schema-3.json @@ -1,7 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Example_TrafficSteeringPreference_1.0.0", - "description": "Example QoE Target policy type", + "description": "Example Traffic Steering Preference policy type", "type": "object", "properties": { "scope": { diff --git a/webapp-frontend/src/app/policy-control/no-type-policy-instance-dialog.component.html b/webapp-frontend/src/app/policy-control/no-type-policy-instance-dialog.component.html index 71c63be..d1f8cce 100644 --- a/webapp-frontend/src/app/policy-control/no-type-policy-instance-dialog.component.html +++ b/webapp-frontend/src/app/policy-control/no-type-policy-instance-dialog.component.html @@ -27,21 +27,22 @@ - Policy with no type + Policy without type -
-
Enter policy statements (JSON).
+

+ Near-RT RIC +

- Select RIC - + {{ric}} @@ -50,26 +51,31 @@ style="width: 300px;">
- A Ric must be selected. + A Near-RT RIC must be selected.
+
+ {{this.ric}} +
+

+ Properties +

- Policy content
- The policy body is required. + The policy properties are required.
- The policy body must be a valid JSON. + The policy properties must be a valid JSON.
diff --git a/webapp-frontend/src/app/policy-control/policy-instance-dialog.component.html b/webapp-frontend/src/app/policy-control/policy-instance-dialog.component.html index 1e4145f..23b46fb 100644 --- a/webapp-frontend/src/app/policy-control/policy-instance-dialog.component.html +++ b/webapp-frontend/src/app/policy-control/policy-instance-dialog.component.html @@ -39,22 +39,26 @@
- - +

+ Near-RT RIC +

- Select RIC - + {{ric}}
- A Ric must be selected. + A Near-RT RIC must be selected.
+
+ {{this.ric}} +

{{isVisible.form ? 'expand_less' : 'expand_more'}} diff --git a/webapp-frontend/src/app/policy-control/policy-instance.component.html b/webapp-frontend/src/app/policy-control/policy-instance.component.html index 8c305e4..f83eba2 100644 --- a/webapp-frontend/src/app/policy-control/policy-instance.component.html +++ b/webapp-frontend/src/app/policy-control/policy-instance.component.html @@ -27,7 +27,7 @@ - Ric + Near-RT RIC {{element.ric}} -- 2.16.6