Clear view
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
This commit is contained in:
parent
e2255164fc
commit
36d9c98e47
@ -44,6 +44,7 @@ export class HasPackageDirective implements OnDestroy{
|
||||
|
||||
|
||||
updateView() {
|
||||
this.viewContainerRef$.clear();
|
||||
const today = new Date(new Date(Date.now()).toUTCString()).setHours(0, 0, 0, 0);
|
||||
if (this.packages$[this.packageIdentifier$] &&
|
||||
this.packages$[this.packageIdentifier$].enabled &&
|
||||
@ -52,8 +53,6 @@ export class HasPackageDirective implements OnDestroy{
|
||||
this.viewContainerRef$.createEmbeddedView(this.thenTemplate$);
|
||||
} else if (this.elseTemplate$) {
|
||||
this.viewContainerRef$.createEmbeddedView(this.elseTemplate$);
|
||||
} else {
|
||||
this.viewContainerRef$.clear();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user