From 62df681da5aa58c3e7720359261448490e4ff757 Mon Sep 17 00:00:00 2001 From: skanderKhabou Date: Tue, 14 May 2024 14:02:49 +0100 Subject: [PATCH 1/2] add no gain button status --- .../farm-post-card.component.html | 56 ++++++++++++++++++- src/assets/i18n/en.json | 1 + src/assets/i18n/fr.json | 1 + 3 files changed, 55 insertions(+), 3 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 fd31129b..57048e8c 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 @@ -625,7 +625,10 @@ " [ngClass]="{ graybtn: !harvestAvailable }" > - + + + + {{ 'campaign_details.editor_recover_sattNull' | translate }} + + + - + + + + {{ 'campaign_details.editor_recover_sattNull' | translate }} + + + Date: Tue, 14 May 2024 16:06:47 +0100 Subject: [PATCH 2/2] add no gains buttons funcitonality and design --- .../farm-post-card/farm-post-card.component.html | 14 +++++++------- .../farm-post-card/farm-post-card.component.scss | 10 +++++++--- 2 files changed, 14 insertions(+), 10 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 57048e8c..c3097f23 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 @@ -623,7 +623,7 @@ !isOwner && prom.campaign.remuneration !== 'publication' " - [ngClass]="{ graybtn: !harvestAvailable }" + [ngClass]="{ graybtn: !harvestAvailable || prom.totalToEarn === '0' }" >