+ ngOnInit () {
+ this.serverService.getConfig()
+ .subscribe(config => {
+ // don't filter if auto-blacklist is not enabled as this will be the only list
+ if (config.instance.pages.hot.enabled) {
+ const index = this.buttons.findIndex(b => b.path === 'hot')
+ this.buttons[index].hidden = false
+ }
+ })
+ }
+
+ get visibleButtons () {
+ return this.buttons.filter(b => !b.hidden)
+ }
+