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() {
|
updateView() {
|
||||||
|
this.viewContainerRef$.clear();
|
||||||
const today = new Date(new Date(Date.now()).toUTCString()).setHours(0, 0, 0, 0);
|
const today = new Date(new Date(Date.now()).toUTCString()).setHours(0, 0, 0, 0);
|
||||||
if (this.packages$[this.packageIdentifier$] &&
|
if (this.packages$[this.packageIdentifier$] &&
|
||||||
this.packages$[this.packageIdentifier$].enabled &&
|
this.packages$[this.packageIdentifier$].enabled &&
|
||||||
@ -52,9 +53,7 @@ export class HasPackageDirective implements OnDestroy{
|
|||||||
this.viewContainerRef$.createEmbeddedView(this.thenTemplate$);
|
this.viewContainerRef$.createEmbeddedView(this.thenTemplate$);
|
||||||
} else if (this.elseTemplate$) {
|
} else if (this.elseTemplate$) {
|
||||||
this.viewContainerRef$.createEmbeddedView(this.elseTemplate$);
|
this.viewContainerRef$.createEmbeddedView(this.elseTemplate$);
|
||||||
} else {
|
}
|
||||||
this.viewContainerRef$.clear();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy() {
|
ngOnDestroy() {
|
||||||
|
Loading…
Reference in New Issue
Block a user