Compare commits
No commits in common. "c0d8e6d6151e6c209c08a71bb78796fd0fa997c2" and "dcc24aa1493671b3cd88f43dff2d8dff1c601e27" have entirely different histories.
c0d8e6d615
...
dcc24aa149
@ -47,6 +47,7 @@ export class HasPackageDirective implements OnDestroy{
|
||||
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 &&
|
||||
(this.packages$[this.packageIdentifier$].dataDate && new Date(this.packages$[this.packageIdentifier$].dataDate).setHours(0, 0, 0, 0) <= today) &&
|
||||
(this.packages$[this.packageIdentifier$].dataEndDate == null || new Date(this.packages$[this.packageIdentifier$].dataEndDate).setHours(0, 0, 0, 0) >= today)) {
|
||||
this.viewContainerRef$.createEmbeddedView(this.thenTemplate$);
|
||||
|
Loading…
Reference in New Issue
Block a user