From 401f001b36be5508dd8c129430126e49e68d1b5b Mon Sep 17 00:00:00 2001 From: KrupaNagabhushan Date: Fri, 22 Apr 2022 15:48:40 +0100 Subject: [PATCH] Fix inputs/policy tabs view for self and instances Issue-ID: SDC-3983 Signed-off-by: KrupaNagabhushan Change-Id: I2b1f0e5c7f6e55765f35ac807926725343a8aa9e --- catalog-ui/src/app/ng2/components/ui/tabs/tab/tab.component.ts | 3 ++- catalog-ui/src/app/ng2/components/ui/tabs/tabs.component.html | 6 ++++-- .../properties-assignment/properties-assignment.page.component.html | 4 ++-- .../properties-assignment/properties-assignment.page.component.less | 2 +- .../properties-assignment/properties-assignment.page.component.ts | 2 ++ 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/catalog-ui/src/app/ng2/components/ui/tabs/tab/tab.component.ts b/catalog-ui/src/app/ng2/components/ui/tabs/tab/tab.component.ts index bad7b80a51..e0eacdc43b 100644 --- a/catalog-ui/src/app/ng2/components/ui/tabs/tab/tab.component.ts +++ b/catalog-ui/src/app/ng2/components/ui/tabs/tab/tab.component.ts @@ -24,7 +24,7 @@ import { ViewEncapsulation } from '@angular/core'; @Component({ selector: 'tab', template: ` -
+
`, @@ -33,6 +33,7 @@ import { ViewEncapsulation } from '@angular/core'; export class Tab { @Input('tabTitle') title: string; @Input() active:boolean = false; + @Input() show:boolean = true; @Input() indication?: number; } diff --git a/catalog-ui/src/app/ng2/components/ui/tabs/tabs.component.html b/catalog-ui/src/app/ng2/components/ui/tabs/tabs.component.html index 8a8ecc3e7f..d52dccc054 100644 --- a/catalog-ui/src/app/ng2/components/ui/tabs/tabs.component.html +++ b/catalog-ui/src/app/ng2/components/ui/tabs/tabs.component.html @@ -13,12 +13,14 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License. --> - +
-
+ +
{{tab.title}}
{{tab.indication}}
+
diff --git a/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.html b/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.html index 747624a03f..d04ddf5c91 100644 --- a/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.html +++ b/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.html @@ -40,7 +40,7 @@ (deleteProperty)="deleteProperty($event)"> - + - + { + this.selectInstanceRow(SERVICE_SELF_TITLE); + this.onInstanceSelectedUpdate(this.instances[0]); this.setInputTabIndication(response.length); this.checkedPropertiesCount = 0; this.checkedChildPropertiesCount = 0; -- 2.16.6