Fixes of the darkMode
Fixed some tslint warnings
Change-Id: I66602b55746f23131a14d614a170b74f0158473f
Issue-ID: NONRTRIC-61
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
diff --git a/dashboard/webapp-frontend/src/app/policy-control/policy-instance.component.html b/dashboard/webapp-frontend/src/app/policy-control/policy-instance.component.html
index 60bfab2..e1a67dd 100644
--- a/dashboard/webapp-frontend/src/app/policy-control/policy-instance.component.html
+++ b/dashboard/webapp-frontend/src/app/policy-control/policy-instance.component.html
@@ -17,10 +17,11 @@
limitations under the License.
========================LICENSE_END===================================
-->
-<table #table mat-table class="instances-table mat-elevation-z8" matSort multiTemplateDataRows [dataSource]="instanceDataSource">
+<table #table mat-table class="instances-table mat-elevation-z8" [ngClass]="{'table-dark': darkMode}" matSort
+ multiTemplateDataRows [dataSource]="instanceDataSource">
<ng-container matColumnDef="instanceId">
- <mat-header-cell mat-sort-header *matHeaderCellDef >Instance</mat-header-cell>
+ <mat-header-cell mat-sort-header *matHeaderCellDef>Instance</mat-header-cell>
<mat-cell *matCellDef="let element" (click)="modifyInstance(element)">{{element.instanceId}}
</mat-cell>
</ng-container>
@@ -41,8 +42,7 @@
<mat-footer-cell *matFooterCellDef>No records found.</mat-footer-cell>
</ng-container>
- <mat-header-row *matHeaderRowDef="['instanceId', 'action']"
- [ngClass]="{'display-none': !this.hasInstances()}">
+ <mat-header-row *matHeaderRowDef="['instanceId', 'action']" [ngClass]="{'display-none': !this.hasInstances()}">
</mat-header-row>
<mat-row *matRowDef="let instance; columns: ['instanceId', 'action'];"></mat-row>
@@ -51,7 +51,6 @@
</table>
-
<div class="spinner-container" *ngIf="instanceDataSource.loading$ | async">
<mat-spinner diameter="50"></mat-spinner>
</div>
\ No newline at end of file