1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/frontend/app/ui/settings/_abstract/abstract.settings.service.ts
Patrik J. Braun 0d3b8823e4 ui directory refactoring
adding thumbnail loader for faces
2019-03-03 10:30:12 +01:00

28 lines
503 B
TypeScript

import {SettingsService} from '../settings.service';
export abstract class AbstractSettingsService<T> {
protected constructor(public _settingsService: SettingsService) {
}
get Settings() {
return this._settingsService.settings;
}
public getSettings(): Promise<void> {
return this._settingsService.getSettings();
}
public showInSimplifiedMode(): boolean {
return true;
}
isSupported() {
return true;
}
abstract updateSettings(settings: T): Promise<void>;
}