From 0e980aa0eb5474a01b068944632b3970f6db00fb Mon Sep 17 00:00:00 2001 From: skanderKhabou <68278143+skanderKhabou@users.noreply.github.com> Date: Mon, 29 Apr 2024 09:31:12 +0100 Subject: [PATCH] 743 harvest transaction hash redirection (#748) * wip harvest transaction redirect * fix redirection with all networks include arthera * fix transac hash redirect for campaign owner --- .../farm-post-card.component.html | 113 +++++++++++------- .../copy-transaction-hash.component.ts | 17 +-- 2 files changed, 77 insertions(+), 53 deletions(-) diff --git a/src/app/campaigns/components/farm-post-card/farm-post-card.component.html b/src/app/campaigns/components/farm-post-card/farm-post-card.component.html index 63039fd9..fd31129b 100755 --- a/src/app/campaigns/components/farm-post-card/farm-post-card.component.html +++ b/src/app/campaigns/components/farm-post-card/farm-post-card.component.html @@ -44,19 +44,18 @@ onerror="this.src='/assets/Images/campagne/twitter_cover.svg'" class="cmp-img2" /> - + - + + [src]="prom.mediaUrl" + onerror="this.src='/assets/Images/campagne/instagramm.svg'" + class="cmp-img2" + /> - - + -

- - - - {{ prom.applyDate | date: 'MM/dd/yyyy':undefined:localId || '' }} - - + + + {{ prom.applyDate | date: 'MM/dd/yyyy':undefined:localId || '' }} + +

- - - {{ prom.applyDate | date: 'dd/MM/yyyy ':undefined:localId || '' }} - -

- -
@@ -610,10 +618,14 @@ class="buttom_camp3" (click)="getMyGains(prom)" [disabled]="!harvestAvailable" - *ngIf="prom.type === 'harvest' && !isOwner && prom.campaign.remuneration !== 'publication'" + *ngIf=" + prom.type === 'harvest' && + !isOwner && + prom.campaign.remuneration !== 'publication' + " [ngClass]="{ graybtn: !harvestAvailable }" > - + - - + {{ 'wait_harvest' | translate }} - - + {{ harvestAvailableIn }} @@ -651,11 +666,17 @@ class="buttom_camp3" (click)="getMyGains(prom)" [disabled]="prom.campaign.type !== 'finished' || !harvestAvailable" - *ngIf="prom.type === 'harvest' && !isOwner && prom.campaign.remuneration === 'publication'" - [ngClass]="{ graybtn: prom.campaign.type === 'apply' || !harvestAvailable }" + *ngIf=" + prom.type === 'harvest' && + !isOwner && + prom.campaign.remuneration === 'publication' + " + [ngClass]="{ + graybtn: prom.campaign.type === 'apply' || !harvestAvailable + }" > - - + @@ -674,19 +695,21 @@ }}.svg" /> - - + {{ 'wait_harvest' | translate }} - - - {{ harvestAvailableIn}} + + {{ harvestAvailableIn }} -