Logging & Styling

This commit is contained in:
Bastian Wagner
2026-02-16 12:11:30 +01:00
parent 2eafa21baf
commit 9ea2229f5a
29 changed files with 169 additions and 90 deletions

View File

@@ -8,5 +8,5 @@
</mat-dialog-content>
<mat-dialog-actions>
<button mat-button [mat-dialog-close]="dataChanged">Schließen</button>
<button matButton [mat-dialog-close]="dataChanged">Schließen</button>
</mat-dialog-actions>

View File

@@ -1,7 +1,7 @@
<h2 mat-dialog-title>Schlüssel <u>{{key.name}}</u> löschen?</h2>
<mat-dialog-content>
<div class="warning-message">
<mat-icon color="warn">warning</mat-icon>
<mat-icon>warning</mat-icon>
<p>
<b>{{key.name}}</b> wirklich entfernen?
</p>
@@ -12,8 +12,8 @@
</div>
</mat-dialog-content>
<mat-dialog-actions align="end">
<button mat-button [mat-dialog-close]="false">Abbrechen</button>
<button mat-raised-button color="warn" [mat-dialog-close]="true">
<button matButton [mat-dialog-close]="false">Abbrechen</button>
<button matButton="elevated" [mat-dialog-close]="true" class="btn-warning">
<mat-icon>delete</mat-icon>
Entfernen
</button>

View File

@@ -43,8 +43,11 @@
</form>
</mat-dialog-content>
<mat-dialog-actions>
<button mat-button mat-dialog-close color="warn" >Schließen</button>
<button mat-button (click)="save()" [disabled]="handoverForm.invalid">Speichern</button>
<button matButton mat-dialog-close class="btn-warning">Schließen</button>
<button matButton="elevated" (click)="save()" class="btn-primary" [disabled]="handoverForm.invalid || handoverForm.pristine">
<mat-icon>save</mat-icon>
Speichern
</button>
</mat-dialog-actions>
</mat-tab>
@@ -59,7 +62,7 @@
</div>
</mat-dialog-content>
<mat-dialog-actions>
<button mat-button mat-dialog-close color="warn" >Schließen</button>
<button matButton mat-dialog-close >Schließen</button>
</mat-dialog-actions>
</mat-tab>
</mat-tab-group>

View File

@@ -24,10 +24,11 @@ import {MatTabsModule} from '@angular/material/tabs';
import { GridApi, GridOptions, GridReadyEvent } from 'ag-grid-community';
import { AG_GRID_LOCALE_DE } from '@ag-grid-community/locale';
import { AgGridAngular } from 'ag-grid-angular';
import { MatIconModule } from '@angular/material/icon';
@Component({
selector: 'app-handover-dialog',
imports: [FormsModule, MatTabsModule, AgGridAngular, ReactiveFormsModule, MatDatepickerModule, MatFormFieldModule, MatInputModule, MatButtonModule, MatDialogModule, MatAutocompleteModule, MatProgressSpinnerModule, MatRadioModule, AsyncPipe],
imports: [FormsModule, MatTabsModule, AgGridAngular, ReactiveFormsModule, MatDatepickerModule, MatFormFieldModule, MatInputModule, MatButtonModule, MatDialogModule, MatAutocompleteModule, MatProgressSpinnerModule, MatRadioModule, AsyncPipe, MatIconModule],
providers: [
provideNativeDateAdapter(),
{ provide: LOCALE_ID, useValue: 'de-DE' },

View File

@@ -6,7 +6,7 @@
<mat-dialog-content>
<div class="warning-message">
@if(key.keyLost != null) {
<mat-icon color="accent">report</mat-icon>
<mat-icon >report</mat-icon>
<p>
<b>{{key.name}}</b> wirklich als gefunden markieren?
</p>
@@ -14,7 +14,7 @@
<small>Die Information, dass er am {{ key.keyLost| date:'shortDate' }} verloren wurde, wird gelöscht!</small>
</p>
} @else {
<mat-icon color="warn">warning</mat-icon>
<mat-icon>warning</mat-icon>
<p>
<b>{{key.name}}</b> wirklich als verloren markieren?
</p>
@@ -25,15 +25,15 @@
</div>
</mat-dialog-content>
<mat-dialog-actions align="end">
<button mat-button [mat-dialog-close]="null">Abbrechen</button>
<button matButton [mat-dialog-close]="null">Abbrechen</button>
@if(key.keyLost != null) {
<button mat-raised-button color="accent" (click)="closeFound()">
<button matButton="elevated" (click)="closeFound()">
<mat-icon>report</mat-icon>
Als gefunden melden
</button>
} @else {
<button mat-raised-button color="warn" (click)="closeWithData()">
<button matButton="elevated" (click)="closeWithData()">
<mat-icon>report_problem</mat-icon>
Als verloren melden
</button>

View File

@@ -7,5 +7,5 @@
/>
</mat-dialog-content>
<mat-dialog-actions>
<button mat-button [mat-dialog-close]="dataChanged">Schließen</button>
<button matButton [mat-dialog-close]="dataChanged">Schließen</button>
</mat-dialog-actions>

View File

@@ -41,8 +41,8 @@
</form>
</mat-dialog-content>
<mat-dialog-actions>
<button mat-button mat-dialog-close color="warn">Abbrechen</button>
<button (click)="save()" [disabled]="createForm.disabled || createForm.invalid" mat-raised-button color="accent">
<button matButton mat-dialog-close>Abbrechen</button>
<button (click)="save()" [disabled]="createForm.disabled || createForm.invalid" matButton="elevated" class="btn-primary">
<mat-icon>save</mat-icon>
Speichern
</button>

View File

@@ -10,6 +10,6 @@
</mat-dialog-content>
<mat-dialog-actions>
<button mat-button color="warn" [mat-dialog-close]="null">Abbrechen</button>
<button mat-button color="accent" [mat-dialog-close]="selectedCylinders">Übernehmen</button>
<button matButton [mat-dialog-close]="null">Abbrechen</button>
<button matButton [mat-dialog-close]="selectedCylinders">Übernehmen</button>
</mat-dialog-actions>

View File

@@ -5,7 +5,7 @@
/>
<div class="floating-btn-container">
<button mat-flat-button class="btn-create mat-elevation-z8" (click)="openCreateKey()" color="accent" >Schlüssel anlegen</button>
<button mat-flat-button class="btn-create mat-elevation-z8" (click)="openCreateKey()" >Schlüssel anlegen</button>
<button mat-mini-fab (click)="openArchive()" matTooltip="Archiv"><mat-icon>inventory_2</mat-icon></button>
<button mat-mini-fab (click)="openLostKeys()" class="lost icon-btn-xs" style="background-repeat: no-repeat; background-position: center;" matTooltip="Verlorene Schlüssel"></button>
</div>