Add error handling and snackbar notifications

Introduces error state management in LoadingService, displays error bar and snackbar notifications in the UI, and updates ScheduleComponent to use the new error handling. Also adds custom theming for error snackbar and progress bar.
This commit is contained in:
2025-10-31 16:19:02 +01:00
parent 0828493be5
commit 5addba879a
6 changed files with 113 additions and 29 deletions

View File

@@ -6,15 +6,30 @@
// custom components at https://material.angular.dev/guide/theming
@use '@angular/material' as mat;
@include mat.progress-bar-overrides((
active-indicator-color: white,
track-color: transparent, // Transparent machen
));
@include mat.progress-bar-overrides((
active-indicator-color: white,
track-color: transparent,
));
.mdc-linear-progress__buffer-bar {
background: linear-gradient(to right, #6366f1, #db2777) !important;
}
@include mat.snack-bar-overrides((
container-color: red,
));
.error-snackbar .mat-mdc-snack-bar-label {
color: white !important;
}
.error-snackbar .mat-mdc-button {
color: white !important;
}
// Gradient als Hintergrund
.mdc-linear-progress__buffer-bar {
background: linear-gradient(to right, #6366f1, #db2777) !important;
}
html {
@include mat.theme((