Skip to content

Commit

Permalink
Hide share button on PostCapture preview. #426
Browse files Browse the repository at this point in the history
  • Loading branch information
seanwu1105 authored Dec 25, 2020
1 parent 1ae59c8 commit d3f74e4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@

<ng-container *ngIf="isPreview">
<app-post-capture-card
[sharable]="false"
*ngIf="asset$ | async; let asset"
[transaction]="{
sender: asset.owner,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
(transaction$ | async)?.fulfilled_at | date: 'short'
}}</mat-card-subtitle>
<span class="toolbar-spacer"></span>
<button (click)="share()" mat-icon-button>
<button [hidden]="!sharable" (click)="share()" mat-icon-button>
<mat-icon>share</mat-icon>
</button>
</mat-card-header>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d3f74e4

Please sign in to comment.