fixed status bar not showing

This commit is contained in:
Alec Merdler 2017-07-26 11:24:12 -04:00
parent c271b1f386
commit 25f514a03d
4 changed files with 14 additions and 5 deletions

View file

@ -16,6 +16,7 @@ import { Directive, Inject, Input, AfterContentInit } from 'ng-metadata/core';
export class QuayRequireDirective implements AfterContentInit {
@Input('<quayRequire') public requiredFeatures: string[] = [];
private ngIfDirective: ng.IDirective;
constructor(@Inject('Features') private features: any,
@ -27,7 +28,7 @@ export class QuayRequireDirective implements AfterContentInit {
}
public ngAfterContentInit(): void {
const attrs: {[name: string]: any} = {'ngIf': () => this.features.matchesFeatures(this.requiredFeatures)};
const attrs: {[name: string]: () => boolean} = {'ngIf': () => this.features.matchesFeatures(this.requiredFeatures)};
(<Function>this.ngIfDirective.link).apply(this.ngIfDirective,
[