fixed status bar not showing
This commit is contained in:
parent
c271b1f386
commit
25f514a03d
4 changed files with 14 additions and 5 deletions
|
@ -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,
|
||||
[
|
||||
|
|
Reference in a new issue