Skip to content

Commit

Permalink
add no gains buttons funcitonality and design
Browse files Browse the repository at this point in the history
  • Loading branch information
skanderKhabou committed May 14, 2024
1 parent 62df681 commit e31eee4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@
!isOwner &&
prom.campaign.remuneration !== 'publication'
"
[ngClass]="{ graybtn: !harvestAvailable }"
[ngClass]="{ graybtn: !harvestAvailable || prom.totalToEarn === '0' }"
>
<span
class="btn-participe-gain"
Expand Down Expand Up @@ -687,19 +687,19 @@
<button
type="button"
class="buttom_camp3"
[ngClass]="{ disable: prom.totalToearn === '0' }"
(click)="getMyGains(prom)"
[disabled]="
prom.campaign.type !== 'finished' ||
!harvestAvailable ||
prom.totalToEarn === '0'
"
[disabled]="prom.campaign.type !== 'finished' || !harvestAvailable"
*ngIf="
prom.type === 'harvest' &&
!isOwner &&
prom.campaign.remuneration === 'publication'
"
[ngClass]="{
graybtn: prom.campaign.type === 'apply' || !harvestAvailable
graybtn:
prom.campaign.type === 'apply' ||
!harvestAvailable ||
prom.totalToEarn === '0'
}"
>
<span
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

0 comments on commit e31eee4

Please sign in to comment.