@lowcodeunit/applications-flow-common 1.37.10-ad-placement → 1.37.11-ad-placement
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/elements/advertisement-card/advertisement-card.component.mjs +6 -4
- package/fesm2015/lowcodeunit-applications-flow-common.mjs +6 -3
- package/fesm2015/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/fesm2020/lowcodeunit-applications-flow-common.mjs +5 -3
- package/fesm2020/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -7471,19 +7471,21 @@ class AdvertisementCardComponent {
|
|
|
7471
7471
|
constructor() { }
|
|
7472
7472
|
ngOnInit() { }
|
|
7473
7473
|
ngOnChanges() {
|
|
7474
|
+
// 900000 = 15 mins
|
|
7474
7475
|
if (this.Advertisements?.length > 0) {
|
|
7475
7476
|
console.log('Ads: ', this.Advertisements);
|
|
7476
7477
|
let i = 0;
|
|
7477
7478
|
this.CurrentAd = this.Advertisements[i];
|
|
7478
|
-
|
|
7479
|
-
if (i + 1 > this.Advertisements
|
|
7479
|
+
setInterval(() => {
|
|
7480
|
+
if (i + 1 > this.Advertisements?.length - 1) {
|
|
7480
7481
|
i = 0;
|
|
7481
7482
|
}
|
|
7482
7483
|
else {
|
|
7483
7484
|
i++;
|
|
7484
7485
|
}
|
|
7485
7486
|
this.CurrentAd = this.Advertisements[i];
|
|
7486
|
-
|
|
7487
|
+
console.log('current ad = ', this.CurrentAd);
|
|
7488
|
+
}, 30000);
|
|
7487
7489
|
}
|
|
7488
7490
|
}
|
|
7489
7491
|
ActionClicked(action) {
|