diff --git a/src/app/campaigns/campaign-details/components/campaign-detail/campaign-detail.component.html b/src/app/campaigns/campaign-details/components/campaign-detail/campaign-detail.component.html index fb12db5ac..c8c342630 100755 --- a/src/app/campaigns/campaign-details/components/campaign-detail/campaign-detail.component.html +++ b/src/app/campaigns/campaign-details/components/campaign-detail/campaign-detail.component.html @@ -1,9 +1,11 @@ - - + + + +
diff --git a/src/app/campaigns/campaign-details/components/campaign-detail/campaign-detail.component.ts b/src/app/campaigns/campaign-details/components/campaign-detail/campaign-detail.component.ts index 07a65bc5b..8b9df1f18 100755 --- a/src/app/campaigns/campaign-details/components/campaign-detail/campaign-detail.component.ts +++ b/src/app/campaigns/campaign-details/components/campaign-detail/campaign-detail.component.ts @@ -214,9 +214,21 @@ export class CampaignDetailComponent implements OnInit { // this._location.back(); this.router.navigate(['home/ad-pools']); } + + async setMetaTags(){ + try { + await this.getCampaign(); + console.log(this.campaign , "campaign data"); + } catch (error) { + console.error('Error setting meta tags', error); + } + } + ngOnInit(): void { + + this.getScreenWidth = window.innerWidth; - + this.refundButtonDisable = true; this.loadingData = true; this.CampaignService.isLoading.subscribe((res) => { @@ -239,15 +251,15 @@ export class CampaignDetailComponent implements OnInit { // main.style.marginTop = '28%'; // // cover.style.position = 'fixed'; - + this.campaignsStoreService.emitLogoCampaignUpdated .pipe(takeUntil(this.isDestroyed)) .subscribe(() => { this.campaign = this.campaignsStoreService.campaign; }); - this.spinner.show(); - this.showInfoSpinner = true; - + this.spinner.show(); + this.showInfoSpinner = true; + this.totalG = { view: 0, view_satt: 0, @@ -264,6 +276,7 @@ export class CampaignDetailComponent implements OnInit { this.campaignsFacade.loadKits(this.campaignId); this.getCryptoData(); this.getCampaign(); + this.setMetaTags(); this.gettingAllproms(); if (isPlatformBrowser(this.platformId)) { this.getKits(); diff --git a/src/app/campaigns/campaign-details/components/campaign-details-container/campaign-details-container.component.html b/src/app/campaigns/campaign-details/components/campaign-details-container/campaign-details-container.component.html index 721e7e32e..18636fe6e 100755 --- a/src/app/campaigns/campaign-details/components/campaign-details-container/campaign-details-container.component.html +++ b/src/app/campaigns/campaign-details/components/campaign-details-container/campaign-details-container.component.html @@ -1,4 +1,3 @@ - -
- +