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

32 lines
1.3 KiB
TypeScript

import {Component} from '@angular/core';
import {SettingsComponent} from '../_abstract/abstract.settings.component';
import {AuthenticationService} from '../../../model/network/authentication.service';
import {NavigationService} from '../../../model/navigation.service';
import {NotificationService} from '../../../model/notification.service';
import {ClientConfig} from '../../../../../common/config/public/ConfigClass';
import {RandomPhotoSettingsService} from './random-photo.settings.service';
import {I18n} from '@ngx-translate/i18n-polyfill';
@Component({
selector: 'app-settings-random-photo',
templateUrl: './random-photo.settings.component.html',
styleUrls: ['./random-photo.settings.component.css',
'./../_abstract/abstract.settings.component.css'],
providers: [RandomPhotoSettingsService],
})
export class RandomPhotoSettingsComponent extends SettingsComponent<ClientConfig.RandomPhotoConfig> {
constructor(_authService: AuthenticationService,
_navigation: NavigationService,
_settingsService: RandomPhotoSettingsService,
notification: NotificationService,
i18n: I18n) {
super(i18n('Random Media'), _authService, _navigation, _settingsService, notification, i18n, s => s.Client.RandomPhoto);
}
}