diff --git a/client/wfnews-war/src/main/angular/src/app/app.component.ts b/client/wfnews-war/src/main/angular/src/app/app.component.ts index 77e2858c9..322c68e85 100644 --- a/client/wfnews-war/src/main/angular/src/app/app.component.ts +++ b/client/wfnews-war/src/main/angular/src/app/app.component.ts @@ -286,6 +286,7 @@ export class AppComponent implements OnDestroy, OnInit, AfterViewInit { this.metaService.updateTag({ property: 'og:title', content: 'BC Wildfire Service' }); this.metaService.updateTag({ property: 'og:image', content: imageUrl }); this.metaService.updateTag({ property: 'og:site_name', content: 'BC Wildfire Service' }); + this.metaService.updateTag({ name: 'description', content: `BC Wildfire Service App` }); this.metaService.updateTag({ name: 'twitter:card', content: 'summary_large_image' }); this.metaService.updateTag({ name: 'twitter:site', content: '@BCGovFireInfo' }); } diff --git a/client/wfnews-war/src/main/angular/src/app/components/full-details/area-restrictions-full-details/area-restrictions-full-details.component.ts b/client/wfnews-war/src/main/angular/src/app/components/full-details/area-restrictions-full-details/area-restrictions-full-details.component.ts index 1e5b82b47..13170c0c6 100644 --- a/client/wfnews-war/src/main/angular/src/app/components/full-details/area-restrictions-full-details/area-restrictions-full-details.component.ts +++ b/client/wfnews-war/src/main/angular/src/app/components/full-details/area-restrictions-full-details/area-restrictions-full-details.component.ts @@ -71,6 +71,8 @@ export class AreaRestrictionsFullDetailsComponent implements OnInit { }); this.initMap(); this.metaService.updateTag({ property: 'og:title', content: this.restrictionData?.name }); + this.metaService.updateTag({ name: 'description', content: this.restrictionData?.name }); + } async initMap() { diff --git a/client/wfnews-war/src/main/angular/src/app/components/full-details/bans-full-details/bans-full-details.component.ts b/client/wfnews-war/src/main/angular/src/app/components/full-details/bans-full-details/bans-full-details.component.ts index 6233efa59..507b74189 100644 --- a/client/wfnews-war/src/main/angular/src/app/components/full-details/bans-full-details/bans-full-details.component.ts +++ b/client/wfnews-war/src/main/angular/src/app/components/full-details/bans-full-details/bans-full-details.component.ts @@ -54,6 +54,7 @@ export class BansFullDetailsComponent implements OnInit { }); this.initMap(); this.metaService.updateTag({ property: 'og:title', content: `Fire Ban on ${this.banData.description} Open Fires`}); + this.metaService.updateTag({ name: 'description', content: `Fire Ban on ${this.banData.description} Open Fires` }); } async initMap() { diff --git a/client/wfnews-war/src/main/angular/src/app/components/full-details/danger-rating-full-details/danger-rating-full-details.component.ts b/client/wfnews-war/src/main/angular/src/app/components/full-details/danger-rating-full-details/danger-rating-full-details.component.ts index 1db7e72d2..f79388ef2 100644 --- a/client/wfnews-war/src/main/angular/src/app/components/full-details/danger-rating-full-details/danger-rating-full-details.component.ts +++ b/client/wfnews-war/src/main/angular/src/app/components/full-details/danger-rating-full-details/danger-rating-full-details.component.ts @@ -36,6 +36,7 @@ export class DangerRatingFullDetailsComponent implements OnInit { async ngOnInit(): Promise { this.initMap(); this.metaService.updateTag({ property: 'og:title', content: `${this.rating} Danger Rating`}); + this.metaService.updateTag({ name: 'description', content: `${this.rating} Danger Rating` }); } dangerDescription() { diff --git a/client/wfnews-war/src/main/angular/src/app/components/full-details/evac-alert-full-details/evac-alert-full-details.component.ts b/client/wfnews-war/src/main/angular/src/app/components/full-details/evac-alert-full-details/evac-alert-full-details.component.ts index ce63c987d..0b63ab32b 100644 --- a/client/wfnews-war/src/main/angular/src/app/components/full-details/evac-alert-full-details/evac-alert-full-details.component.ts +++ b/client/wfnews-war/src/main/angular/src/app/components/full-details/evac-alert-full-details/evac-alert-full-details.component.ts @@ -64,6 +64,8 @@ export class EvacAlertFullDetailsComponent implements OnInit { }); this.initMap(); this.metaService.updateTag({ property: 'og:title', content: `Evacuation Alert for ${this.evacData.name}`}); + this.metaService.updateTag({ name: 'description', content: `Evacuation Alert for ${this.evacData.name}` }); + } async initMap() { diff --git a/client/wfnews-war/src/main/angular/src/app/components/public-incident-page/incident-info-header/incident-header-panel.component.ts b/client/wfnews-war/src/main/angular/src/app/components/public-incident-page/incident-info-header/incident-header-panel.component.ts index 772153f86..347706f84 100644 --- a/client/wfnews-war/src/main/angular/src/app/components/public-incident-page/incident-info-header/incident-header-panel.component.ts +++ b/client/wfnews-war/src/main/angular/src/app/components/public-incident-page/incident-info-header/incident-header-panel.component.ts @@ -150,6 +150,8 @@ export class IncidentHeaderPanelComponent implements AfterViewInit, OnInit { } } this.metaService.updateTag({ property: 'og:title', content: `${this.incident?.incidentName}`}); + this.metaService.updateTag({ name: 'description', content: `${this.incident?.incidentName}` }); + } ngAfterViewInit(): void { diff --git a/client/wfnews-war/src/main/angular/src/app/services/common-utility.service.ts b/client/wfnews-war/src/main/angular/src/app/services/common-utility.service.ts index 26873f111..7ce6d90d6 100644 --- a/client/wfnews-war/src/main/angular/src/app/services/common-utility.service.ts +++ b/client/wfnews-war/src/main/angular/src/app/services/common-utility.service.ts @@ -372,7 +372,6 @@ export class CommonUtilityService { text: 'Share the incident update', url: currentUrl, dialogTitle: 'Share Wildfire News Link', - files: [imageUrl] }).then(() => { console.log('Sharing successful'); }).catch(err => { diff --git a/client/wfnews-war/src/main/angular/src/index.html b/client/wfnews-war/src/main/angular/src/index.html index 4b4b54892..545669746 100644 --- a/client/wfnews-war/src/main/angular/src/index.html +++ b/client/wfnews-war/src/main/angular/src/index.html @@ -6,11 +6,10 @@ - BC Wildfire Service - +