From 112269a5e447bdc06136588a7cc65db3782d7032 Mon Sep 17 00:00:00 2001 From: umasoodch Date: Sun, 5 Sep 2021 16:16:43 +0300 Subject: [PATCH] fixed image sharing issue --- Mohem/config.xml | 3 +++ .../ui/services-button/services-button.component.scss | 2 +- .../offer-details/offer-details.component.ts | 8 +++++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Mohem/config.xml b/Mohem/config.xml index f23adff8..f1bfd97d 100644 --- a/Mohem/config.xml +++ b/Mohem/config.xml @@ -50,6 +50,9 @@ + + + diff --git a/Mohem/src/app/hmg-common/ui/services-button/services-button.component.scss b/Mohem/src/app/hmg-common/ui/services-button/services-button.component.scss index ac71c624..7be7a63d 100644 --- a/Mohem/src/app/hmg-common/ui/services-button/services-button.component.scss +++ b/Mohem/src/app/hmg-common/ui/services-button/services-button.component.scss @@ -26,7 +26,7 @@ } .pClass { - font-size: 10px; + font-size: 9px; text-align: center; margin-top: 10px; color: black; diff --git a/Mohem/src/app/offersdiscount/offer-details/offer-details.component.ts b/Mohem/src/app/offersdiscount/offer-details/offer-details.component.ts index 781d2472..5021dc79 100644 --- a/Mohem/src/app/offersdiscount/offer-details/offer-details.component.ts +++ b/Mohem/src/app/offersdiscount/offer-details/offer-details.component.ts @@ -35,7 +35,13 @@ export class OfferDetailsComponent implements OnInit { return temporalDivElement.textContent || temporalDivElement.innerText || ""; } share() { - this.socialSharing.share(this.stripHtml(this.details.Description), this.stripHtml(this.details.Title), this.details.Banner_Image).then((result) => { + console.log(this.details); + const options = { + message: this.stripHtml(this.details.Description), + // subject: this.stripHtml(this.details.Title), + files: ['https://www.geo.tv/assets/uploads/updates/2021-09-05/368882_8709303_updates.jpg'] + } + this.socialSharing.shareWithOptions(options).then((result) => { console.log(result); }) }