mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Fixed some issues around the tv requests area
Added mattermost and telegram notifications #1459 #865 #1457
This commit is contained in:
parent
03e9852330
commit
bf043fc76e
48 changed files with 1164 additions and 192 deletions
|
@ -15,30 +15,24 @@ 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 {
|
||||
|
||||
|
||||
|
||||
this.user = this.authService.claims();
|
||||
|
||||
this.settingsService.getCustomization().subscribe(x => this.customizationSettings = x);
|
||||
|
||||
this.router.events.subscribe(() => {
|
||||
|
||||
this.user = this.authService.claims();
|
||||
this.showNav = this.authService.loggedIn();
|
||||
});
|
||||
}
|
||||
|
||||
hasRole(role: string): boolean {
|
||||
return this.user.roles.some(r => r === role)
|
||||
return this.user.roles.some(r => r === role);
|
||||
}
|
||||
|
||||
logOut() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue