Skip to content

Commit

Permalink
Merge pull request #10441 from cmgustavo/bug/slider-button-03
Browse files Browse the repository at this point in the history
fix(slider-button): remove gradient if disabled (mobile). Hide if dis…
  • Loading branch information
gabrielbazan7 authored Dec 26, 2019
2 parents 666e679 + 60197e2 commit 1d86ce6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/pages/home/proposals/proposals.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<wide-header-page title="{{'Notifications' | translate}}" [ngClass]="{'add-padding-bottom': isCordova && txpsToSign[0] }">
<wide-header-page title="{{'Notifications' | translate}}" [ngClass]="{'add-padding-bottom': txpsToSign[0] }">
<div page-content>
<div *ngIf="allTxps && allTxps[0]">
<div class="txps-status" *ngFor="let txpsByStatus of allTxps">
Expand Down Expand Up @@ -35,7 +35,7 @@
</wide-header-page>
<ion-footer>
<page-slide-to-accept #slideButton *ngIf="isCordova" [disabled]="!txpsToSign[0]" [buttonText]="buttonText" (slideDone)="sign()"></page-slide-to-accept>
<ion-toolbar *ngIf="!isCordova">
<button ion-button full class="button-footer" [disabled]="!txpsToSign[0]" (click)="sign()">{{buttonText}}</button>
<ion-toolbar *ngIf="!isCordova && txpsToSign[0]">
<button ion-button full class="button-footer" (click)="sign()">{{buttonText}}</button>
</ion-toolbar>
</ion-footer>
2 changes: 1 addition & 1 deletion src/pages/slide-to-accept/slide-to-accept.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
page-slide-to-accept {
&[ng-reflect-disabled='true'] {
opacity: 0.4;
opacity: 0;
}
background: linear-gradient(
to bottom,
Expand Down

0 comments on commit 1d86ce6

Please sign in to comment.