Fixed some issues around the tv requests area

Added mattermost and telegram notifications #1459 #865 #1457
This commit is contained in:
tidusjar 2017-08-21 17:06:07 +01:00
commit bf043fc76e
48 changed files with 1164 additions and 192 deletions

View file

@ -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() {