Skip to content

Commit

Permalink
get rid of file upload in capacitor share
Browse files Browse the repository at this point in the history
  • Loading branch information
yzlucas committed Nov 6, 2024
1 parent cef27ad commit a85bebc
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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' });
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export class DangerRatingFullDetailsComponent implements OnInit {
async ngOnInit(): Promise<void> {
this.initMap();
this.metaService.updateTag({ property: 'og:title', content: `${this.rating} Danger Rating`});
this.metaService.updateTag({ name: 'description', content: `${this.rating} Danger Rating` });
}

dangerDescription() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
3 changes: 1 addition & 2 deletions client/wfnews-war/src/main/angular/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="utf-8">
<meta name="description" content="BC Wildfire Service App">
<title>BC Wildfire Service</title>

<meta property="og:title" content="BC Wildfire Service">
<meta property="og:image" content="assets/images/share-wildfire.png">
<meta property="og:site_name" content="BC Wildfire Servic">
<meta property="og:site_name" content="BC Wildfire Service">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@BCGovFireInfo'">

Expand Down

0 comments on commit a85bebc

Please sign in to comment.