Settings repariert
This commit is contained in:
@@ -19,7 +19,6 @@ import { MatIconModule } from '@angular/material/icon';
|
|||||||
styleUrl: './settings.component.scss'
|
styleUrl: './settings.component.scss'
|
||||||
})
|
})
|
||||||
export class SettingsComponent {
|
export class SettingsComponent {
|
||||||
@Input() isOpen = false;
|
|
||||||
@Output() close = new EventEmitter<void>();
|
@Output() close = new EventEmitter<void>();
|
||||||
|
|
||||||
private authService: AuthService = inject(AuthService);
|
private authService: AuthService = inject(AuthService);
|
||||||
@@ -43,11 +42,6 @@ export class SettingsComponent {
|
|||||||
uiScale: new FormControl('s')
|
uiScale: new FormControl('s')
|
||||||
})
|
})
|
||||||
|
|
||||||
open() {
|
|
||||||
this.isOpen = true;
|
|
||||||
this.loadSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
closeSidebar() {
|
closeSidebar() {
|
||||||
if (this.isDirty()) {
|
if (this.isDirty()) {
|
||||||
this.toast.warning('Ungespeicherte Änderungen wurden verworfen.');
|
this.toast.warning('Ungespeicherte Änderungen wurden verworfen.');
|
||||||
@@ -72,7 +66,7 @@ export class SettingsComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.loadSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
async loadSettings() {
|
async loadSettings() {
|
||||||
|
|||||||
Reference in New Issue
Block a user