|
|
@ -56,10 +56,10 @@ export class AppComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
|
|
this.settingsService.getCustomization().subscribe(x => {
|
|
|
|
this.settingsService.getCustomization().subscribe(x => {
|
|
|
|
this.customizationSettings = x;
|
|
|
|
this.customizationSettings = x;
|
|
|
|
if(this.customizationSettings.useCustomPage) {
|
|
|
|
if (this.customizationSettings.useCustomPage) {
|
|
|
|
this.settingsService.getCustomPage().subscribe(c => {
|
|
|
|
this.settingsService.getCustomPage().subscribe(c => {
|
|
|
|
this.customPageSettings = c;
|
|
|
|
this.customPageSettings = c;
|
|
|
|
if(!this.customPageSettings.title) {
|
|
|
|
if (!this.customPageSettings.title) {
|
|
|
|
this.customPageSettings.title = "Custom Page";
|
|
|
|
this.customPageSettings.title = "Custom Page";
|
|
|
|
this.customPageSettings.fontAwesomeIcon = "fa-check";
|
|
|
|
this.customPageSettings.fontAwesomeIcon = "fa-check";
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -67,7 +67,7 @@ export class AppComponent implements OnInit {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.settingsService.issueEnabled().subscribe(x => this.issuesEnabled = x);
|
|
|
|
this.settingsService.issueEnabled().subscribe(x => this.issuesEnabled = x);
|
|
|
|
this.settingsService.voteEnabled().subscribe(x => this.voteEnabled =x);
|
|
|
|
this.settingsService.voteEnabled().subscribe(x => this.voteEnabled = x);
|
|
|
|
|
|
|
|
|
|
|
|
this.router.events.subscribe((event: NavigationStart) => {
|
|
|
|
this.router.events.subscribe((event: NavigationStart) => {
|
|
|
|
this.currentUrl = event.url;
|
|
|
|
this.currentUrl = event.url;
|
|
|
@ -81,7 +81,7 @@ export class AppComponent implements OnInit {
|
|
|
|
this.jobService.getCachedUpdate().subscribe(x => {
|
|
|
|
this.jobService.getCachedUpdate().subscribe(x => {
|
|
|
|
this.updateAvailable = x;
|
|
|
|
this.updateAvailable = x;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
err => this.checkedForUpdate = true );
|
|
|
|
err => this.checkedForUpdate = true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|