@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.
@@ -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
- setTimeout(function () {
7479
- if (i + 1 > this.Advertisements.length - 1) {
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
- }, 900000);
7487
+ console.log('current ad = ', this.CurrentAd);
7488
+ }, 30000);
7487
7489
  }
7488
7490
  }
7489
7491
  ActionClicked(action) {