From d3f74e420165125b75d9ded142ab1740d67fa1d5 Mon Sep 17 00:00:00 2001 From: Sean Wu Date: Fri, 25 Dec 2020 12:38:26 +0800 Subject: [PATCH] Hide share button on PostCapture preview. #426 --- .../asset/sending-post-capture/sending-post-capture.page.html | 1 + .../shared/post-capture-card/post-capture-card.component.html | 2 +- src/app/shared/post-capture-card/post-capture-card.component.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/pages/home/asset/sending-post-capture/sending-post-capture.page.html b/src/app/pages/home/asset/sending-post-capture/sending-post-capture.page.html index b991ec1e0..32ded8e62 100644 --- a/src/app/pages/home/asset/sending-post-capture/sending-post-capture.page.html +++ b/src/app/pages/home/asset/sending-post-capture/sending-post-capture.page.html @@ -45,6 +45,7 @@ - diff --git a/src/app/shared/post-capture-card/post-capture-card.component.ts b/src/app/shared/post-capture-card/post-capture-card.component.ts index 2c09df06b..4f8dffc40 100644 --- a/src/app/shared/post-capture-card/post-capture-card.component.ts +++ b/src/app/shared/post-capture-card/post-capture-card.component.ts @@ -25,6 +25,7 @@ const { Share, Browser } = Plugins; styleUrls: ['./post-capture-card.component.scss'], }) export class PostCaptureCardComponent implements OnInit { + @Input() readonly sharable = true; @Input() private readonly transaction!: DiaBackendTransaction; @ViewChild('ratioImg', { static: true }) ratioImg!: ElementRef;