mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Email Notifications are now fully customizable and work! #865
We also have reactive forms in the UI, should apply this to other settings.
This commit is contained in:
parent
3b0b35f760
commit
9a4dbb3dce
21 changed files with 361 additions and 232 deletions
|
@ -14,19 +14,17 @@ import { ICustomizationSettings } from './interfaces/ISettings';
|
|||
})
|
||||
export class AppComponent implements OnInit {
|
||||
|
||||
constructor(public notificationService: NotificationService, public authService: AuthService, private router: Router, private settingsService: SettingsService
|
||||
) {
|
||||
constructor(public notificationService: NotificationService, public authService: AuthService, private router: Router, private settingsService: SettingsService)
|
||||
{
|
||||
}
|
||||
|
||||
customizationSettings: ICustomizationSettings;
|
||||
user: ILocalUser;
|
||||
|
||||
ngOnInit(): void {
|
||||
ngOnInit() : void {
|
||||
|
||||
this.user = this.authService.claims();
|
||||
|
||||
|
||||
|
||||
|
||||
this.settingsService.getCustomization().subscribe(x => this.customizationSettings = x);
|
||||
|
||||
this.router.events.subscribe(() => {
|
||||
|
@ -34,7 +32,6 @@ export class AppComponent implements OnInit {
|
|||
this.user = this.authService.claims();
|
||||
this.showNav = this.authService.loggedIn();
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
hasRole(role: string): boolean {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue