Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -623,9 +623,12 @@
!isOwner &&
prom.campaign.remuneration !== 'publication'
"
[ngClass]="{ graybtn: !harvestAvailable }"
[ngClass]="{ graybtn: !harvestAvailable || prom.totalToEarn === '0' }"
>
<span class="btn-participe-gain" *ngIf="harvestAvailable === true">
<span
class="btn-participe-gain"
*ngIf="harvestAvailable === true && prom.totalToEarn !== '0'"
>
<img
class="hourglass mb-3"
src="/assets/Images/newImages/recover-hand.svg"
Expand All @@ -645,6 +648,26 @@
}}.svg"
/>
</span>
<span
class="btn-participe-gain-disabled"
*ngIf="harvestAvailable === true && prom.totalToEarn === '0'"
>
<img
class="hourglass mb-3"
src="/assets/Images/newImages/recover-hand.svg"
/>
<span class="hide-row-desktop"
>{{ 'campaign_details.editor_recover_sattNull' | translate }}
</span>
<!-- <img
width="19px"
height="18px"
class="ms-1 crypto-logo hide-row-desktop"
src="/assets/Images/icons-crypto/white/{{
prom.campaign.currency
}}.svg"
/> -->
</span>
<span
class="btn-apply-text text-orange"
*ngIf="harvestAvailable === false"
Expand All @@ -664,6 +687,7 @@
<button
type="button"
class="buttom_camp3"
[ngClass]="{ disable: prom.totalToearn === '0' }"
(click)="getMyGains(prom)"
[disabled]="prom.campaign.type !== 'finished' || !harvestAvailable"
*ngIf="
Expand All @@ -672,10 +696,16 @@
prom.campaign.remuneration === 'publication'
"
[ngClass]="{
graybtn: prom.campaign.type === 'apply' || !harvestAvailable
graybtn:
prom.campaign.type === 'apply' ||
!harvestAvailable ||
prom.totalToEarn === '0'
}"
>
<span class="btn-participe-gain" *ngIf="harvestAvailable">
<span
class="btn-participe-gain"
*ngIf="harvestAvailable && prom.totalToEarn !== '0'"
>
<img
class="hourglass mb-3"
src="/assets/Images/newImages/recover-hand.svg"
Expand All @@ -695,6 +725,26 @@
}}.svg"
/>
</span>
<span
class="btn-participe-gain-disabled"
*ngIf="harvestAvailable && prom.totalToEarn === '0'"
>
<img
class="hourglass mb-3"
src="/assets/Images/newImages/recover-hand.svg"
/>
<span class="hide-row-desktop"
>{{ 'campaign_details.editor_recover_sattNull' | translate }}
</span>
<!-- <img
width="19px"
height="18px"
class="ms-1 crypto-logo hide-row-desktop"
src="/assets/Images/icons-crypto/white/{{
prom.campaign.currency
}}.svg"
/> -->
</span>
<span
class="btn-apply-text text-orange"
*ngIf="harvestAvailable === false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@
width: 100%;
right: 0px;
}
.graybtn {
.buttom_camp3.graybtn {
pointer-events: none;
font-style: normal;
font-weight: 600;
font-size: 16px;
line-height: 120%;
position: absolute;
cursor: default;
cursor: default !important;
border: none;
box-shadow: 0px 2px 2px rgb(0 0 0 / 15%);
text-align: center;
Expand Down Expand Up @@ -151,7 +152,10 @@ hr.new2 {
text-transform: uppercase;
color: #adadc8;
}

.button_camp3.disable{
pointer-events: none;
background: gray;
}
.buttom_camp3 {
font-style: normal;
font-weight: 600;
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
"social_networks.add_tiktok": "Add TikTok account",
"campaign_details.earnings": "Earnings",
"campaign_details.editor_recover_satt": "Harvest",
"campaign_details.editor_recover_sattNull": "No Gains",
"campaign_details.editor_stats": "Statistics",
"campaign_details.increase_fund": "Gérer mon Adpool",
"campaign_details.media": "Media",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,7 @@
"create-comp-type-here": "Tapez ici...",
"campaign_details.earnings": "Gains",
"campaign_details.editor_recover_satt": "Récupérer",
"campaign_details.editor_recover_sattNull": "Pas de gains",
"campaign_details.editor_stats": "Statistiques",
"campaign_details.increase_fund": "Augmenter le budget",
"campaign_details.media": "Média",
Expand Down