dashboard #1

Merged
andi merged 118 commits from dashboard into master 2024-09-29 06:47:35 +00:00
4 changed files with 17 additions and 12 deletions
Showing only changes of commit c57b53ccc6 - Show all commits

View File

@@ -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">

View File

@@ -1,8 +0,0 @@
:host {
height: calc(100% - 29px);
position: absolute;
width: 100%;
padding: 0.5em;
}

View File

@@ -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 {

View File

@@ -15,6 +15,7 @@
} }
.is-error { .is-error {
font-size: 3rem; font-size: 3rem;
font-weight: bold;
color: #333; color: #333;
} }