Files
Picsur/frontend/src/app/routes/settings/syspref/settings-syspref.component.ts

16 lines
493 B
TypeScript
Raw Normal View History

2022-03-29 20:39:00 +02:00
import { Component } from '@angular/core';
2022-04-02 23:25:49 +02:00
import { DecodedSysPref } from 'picsur-shared/dist/dto/preferences.dto';
2022-03-30 11:40:50 +02:00
import { Observable } from 'rxjs';
2022-03-19 19:30:47 +01:00
import { SysprefService as SysPrefService } from 'src/app/services/api/syspref.service';
2022-03-18 20:45:30 +01:00
@Component({
templateUrl: './settings-syspref.component.html',
})
2022-03-29 20:39:00 +02:00
export class SettingsSysprefComponent {
2022-04-02 23:25:49 +02:00
preferences: Observable<DecodedSysPref[]>;
2022-03-18 20:45:30 +01:00
2022-03-29 20:39:00 +02:00
constructor(sysprefService: SysPrefService) {
this.preferences = sysprefService.live;
2022-03-19 19:30:47 +01:00
}
2022-03-18 20:45:30 +01:00
}