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

16 lines
476 B
TypeScript
Raw Normal View History

2022-03-29 20:39:00 +02:00
import { Component } from '@angular/core';
2022-04-13 21:14:24 +02:00
import { DecodedPref } from 'picsur-shared/dist/dto/preferences.dto';
2022-03-30 11:40:50 +02:00
import { Observable } from 'rxjs';
2022-04-13 17:49:30 +02:00
import { 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-13 21:14:24 +02:00
preferences: Observable<DecodedPref[]>;
2022-03-18 20:45:30 +01:00
2022-04-13 21:14:24 +02:00
constructor(public sysPrefService: SysPrefService) {
this.preferences = sysPrefService.live;
2022-03-19 19:30:47 +01:00
}
2022-03-18 20:45:30 +01:00
}