show info message if no dashboard available
This commit is contained in:
@@ -1,4 +1,13 @@
|
|||||||
<style>
|
<style>
|
||||||
|
:host {
|
||||||
|
/*
|
||||||
|
height: calc(100% - 29px);
|
||||||
|
*/
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
padding: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
.center {
|
.center {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
@@ -10,6 +19,7 @@
|
|||||||
}
|
}
|
||||||
.is-error {
|
.is-error {
|
||||||
font-size: 3rem;
|
font-size: 3rem;
|
||||||
|
font-weight: bold;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -17,14 +27,17 @@
|
|||||||
<div *ngIf="loading" class="center">
|
<div *ngIf="loading" class="center">
|
||||||
<mat-spinner></mat-spinner>
|
<mat-spinner></mat-spinner>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="error" class="center is-error .center-content">
|
<div *ngIf="error" class="center is-error center-content ">
|
||||||
{{error}}
|
{{error}}
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="!loading && !error">
|
<div *ngIf="!loading && !error">
|
||||||
<div class="toolbar">
|
<div class="toolbar">
|
||||||
<button mat-button (click)="createNewDashboard()">New</button>
|
<button mat-button (click)="createNewDashboard()">New</button>
|
||||||
</div>
|
</div>
|
||||||
<table mat-table [dataSource]="dataSource" >
|
<div *ngIf="dataSource.length == 0" class="center center-content is-error">
|
||||||
|
No Dashboard Found
|
||||||
|
</div>
|
||||||
|
<table *ngIf="dataSource.length > 0" mat-table [dataSource]="dataSource" >
|
||||||
|
|
||||||
<!-- Name Column -->
|
<!-- Name Column -->
|
||||||
<ng-container matColumnDef="name">
|
<ng-container matColumnDef="name">
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
|
|
||||||
:host {
|
|
||||||
height: calc(100% - 29px);
|
|
||||||
position: absolute;
|
|
||||||
width: 100%;
|
|
||||||
padding: 0.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -6,8 +6,7 @@ import { NewDashboardComponent } from './new-dashboard/new-dashboard.component';
|
|||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-dashboard-page',
|
selector: 'app-dashboard-page',
|
||||||
templateUrl: './dashboard-page.component.html',
|
templateUrl: './dashboard-page.component.html'
|
||||||
styleUrls: ['./dashboard-page.component.scss']
|
|
||||||
})
|
})
|
||||||
export class DashboardPageComponent implements OnInit {
|
export class DashboardPageComponent implements OnInit {
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
}
|
}
|
||||||
.is-error {
|
.is-error {
|
||||||
font-size: 3rem;
|
font-size: 3rem;
|
||||||
|
font-weight: bold;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user