From 4361a3faa92181fb1321b254241fd1e3a83e15d3 Mon Sep 17 00:00:00 2001 From: Ryan Galletto Date: Wed, 28 Aug 2024 13:55:46 -0400 Subject: [PATCH 1/2] Fix display of identity "role" attributes on simple service form --- .../simple-service/simple-service.component.html | 2 +- .../simple-service/simple-service.component.ts | 13 +++++++++++++ .../tag-selector/tag-selector.component.scss | 6 ++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/projects/ziti-console-lib/src/lib/features/projectable-forms/service/simple-service/simple-service.component.html b/projects/ziti-console-lib/src/lib/features/projectable-forms/service/simple-service/simple-service.component.html index 78aa1fa0..a225bc4b 100644 --- a/projects/ziti-console-lib/src/lib/features/projectable-forms/service/simple-service/simple-service.component.html +++ b/projects/ziti-console-lib/src/lib/features/projectable-forms/service/simple-service/simple-service.component.html @@ -117,7 +117,7 @@ diff --git a/projects/ziti-console-lib/src/lib/features/projectable-forms/service/simple-service/simple-service.component.ts b/projects/ziti-console-lib/src/lib/features/projectable-forms/service/simple-service/simple-service.component.ts index b06c3c0e..d865e52d 100644 --- a/projects/ziti-console-lib/src/lib/features/projectable-forms/service/simple-service/simple-service.component.ts +++ b/projects/ziti-console-lib/src/lib/features/projectable-forms/service/simple-service/simple-service.component.ts @@ -168,6 +168,9 @@ export class SimpleServiceComponent extends ProjectableForm { this.servicesPageService.getServiceRoleAttributes().then((result) => { this.serviceRoleAttributes = result.data; }); + this.servicesPageService.getIdentityRoleAttributes().then((result) => { + this.identityRoleAttributes = result.data; + }); } getIdentityNamedAttributes(filter?) { @@ -382,6 +385,8 @@ export class SimpleServiceComponent extends ProjectableForm { } else if (result === 'cancel') { /// Do nothing, stay on page } else { + this.initDataModels(); + this._dataChange = false; this.router?.navigateByUrl(`${this.basePath}`); } }); @@ -752,6 +757,14 @@ export class SimpleServiceComponent extends ProjectableForm { --data-raw '${JSON.stringify(this.bindPolicyApiData)}' \\`; } + initDataModels() { + this.serviceApiData = this.initServiceApiData; + this.interceptConfigApiData.data = this.initInterceptConfigApiData.data; + this.hostConfigApiData.data = this.initHostConfigApiData.data; + this.dialPolicyApiData = this.initDialPolicyApiData; + this.bindPolicyApiData = this.initBindPolicyApiData; + } + override checkDataChange() { const serviceDataChange = !isEqual(this.initServiceApiData, this.serviceApiData); const interceptDataChange = !isEqual(this.initInterceptConfigApiData.data, this.interceptConfigApiData.data); diff --git a/projects/ziti-console-lib/src/lib/features/tag-selector/tag-selector.component.scss b/projects/ziti-console-lib/src/lib/features/tag-selector/tag-selector.component.scss index 5f7a93a4..cdba705b 100644 --- a/projects/ziti-console-lib/src/lib/features/tag-selector/tag-selector.component.scss +++ b/projects/ziti-console-lib/src/lib/features/tag-selector/tag-selector.component.scss @@ -538,3 +538,9 @@ input { -webkit-animation: loading 0.5s infinite linear; animation: loading 0.5s infinite linear; } + +.tagsSelector { + &.clickOutside { + position: relative; + } +} \ No newline at end of file From 0f382aaab06676c43aa5a8870658fa10a653b82d Mon Sep 17 00:00:00 2001 From: Ryan Galletto Date: Wed, 28 Aug 2024 15:03:40 -0400 Subject: [PATCH 2/2] updated z-indexing for form-field containers --- .../service/simple-service/simple-service.component.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/ziti-console-lib/src/lib/features/projectable-forms/service/simple-service/simple-service.component.html b/projects/ziti-console-lib/src/lib/features/projectable-forms/service/simple-service/simple-service.component.html index a225bc4b..4f5ace35 100644 --- a/projects/ziti-console-lib/src/lib/features/projectable-forms/service/simple-service/simple-service.component.html +++ b/projects/ziti-console-lib/src/lib/features/projectable-forms/service/simple-service/simple-service.component.html @@ -50,7 +50,7 @@
@@ -117,7 +117,7 @@