|
|
|
|
@ -36,9 +36,12 @@ export class OfferDetailsComponent implements OnInit {
|
|
|
|
|
}
|
|
|
|
|
share() {
|
|
|
|
|
console.log(this.details);
|
|
|
|
|
const offerMessage = this.direction === 'ltr' ? this.details.Description : this.details.Description_AR;
|
|
|
|
|
const offerSubject = this.direction === 'ltr' ? this.details.Title : this.details.Title_AR;
|
|
|
|
|
|
|
|
|
|
const options = {
|
|
|
|
|
message: this.stripHtml(this.details.Description),
|
|
|
|
|
subject: this.stripHtml(this.details.Title),
|
|
|
|
|
message: this.stripHtml(offerMessage),
|
|
|
|
|
subject: this.stripHtml(offerSubject),
|
|
|
|
|
files: [this.details.Banner_Image]
|
|
|
|
|
}
|
|
|
|
|
this.socialSharing.shareWithOptions(options).then((result) => {
|
|
|
|
|
|