Merge pull request #6978 from JDonadio/ref/import-wallet

Segments instead of tabs
This commit is contained in:
Gustavo Maximiliano Cortez 2017-10-26 17:42:48 -03:00 committed by GitHub
commit 923e17a58a
2 changed files with 9 additions and 19 deletions

View File

@ -5,11 +5,15 @@
</ion-header>
<ion-content>
<div class="tabs">
<div class="tab" [ngClass]="{'selected': selectedTab == 'words'}" (click)="selectTab('words')"><span>Recovery phrase</span></div>
<div class="tab" [ngClass]="{'selected': selectedTab == 'file'}" (click)="selectTab('file')"><span>File/Text</span></div>
</div>
<ion-segment [(ngModel)]="selectedTab" color="primary" (ionChange)="selectTab(selectedTab)">
<ion-segment-button value="words" translate>
Words
</ion-segment-button>
<ion-segment-button value="file" translate>
File
</ion-segment-button>
</ion-segment>
<form [formGroup]="importForm" (ngSubmit)="import()">
<ion-item *ngIf="selectedTab == 'words'">
<ion-label stacked>Type the recovery phrase (usually 12 words)</ion-label>

View File

@ -1,14 +0,0 @@
.tabs {
display: flex;
text-align: center;
padding-top: 13px;
padding-bottom: 13px;
}
.tab {
width: 100%;
}
.selected {
border-bottom: 2px solid;
}