From 01c00857bcafca7d59b0000bb82a82ad9c5e313d Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Fri, 7 Dec 2018 17:07:33 +0100 Subject: [PATCH] fixed --- .../baseClass/abstract-base-class.ts | 9 +++ .../virtualmachines/vmOverview.component.html | 9 +-- .../virtualmachines/vmOverview.component.ts | 6 +- .../volumeOverview.component.html | 72 ++++++++++++------- .../volumeOverview.component.ts | 25 +------ 5 files changed, 70 insertions(+), 51 deletions(-) diff --git a/src/app/shared_modules/baseClass/abstract-base-class.ts b/src/app/shared_modules/baseClass/abstract-base-class.ts index 3bf03a68a7..680a3a4fa9 100644 --- a/src/app/shared_modules/baseClass/abstract-base-class.ts +++ b/src/app/shared_modules/baseClass/abstract-base-class.ts @@ -94,12 +94,21 @@ export abstract class AbstractBaseClasse { } } + public setCollapseStatus(id:string,status:boolean):void{ + + this.collapse_status[id] = status; + + } + + + /** * Switch status of collapse. * @param {string} id */ public switchCollapseStatus(id: string) { this.collapse_status[id] = !this.getCollapseStatus(id); + console.log(this.collapse_status[id]) } diff --git a/src/app/virtualmachines/vmOverview.component.html b/src/app/virtualmachines/vmOverview.component.html index 1eafab4c38..e0879d806f 100755 --- a/src/app/virtualmachines/vmOverview.component.html +++ b/src/app/virtualmachines/vmOverview.component.html @@ -133,9 +133,10 @@ -
+ [ngClass]="getCollapseStatus(vm.openstackid) ? 'btn-group open': 'btn-group'" + > + (click)="switchCollapseStatus(vm.openstackid)">