mirror of https://github.com/BTCPrivate/copay.git
add navigation with param: wallet
This commit is contained in:
parent
ec21e03fc9
commit
ac6e633b88
|
@ -22,7 +22,7 @@
|
|||
</ion-item>
|
||||
|
||||
<ion-list>
|
||||
<button ion-item *ngFor="let wallet of wallets">
|
||||
<button ion-item *ngFor="let wallet of wallets" (click)="goToWalletDetails(wallet)">
|
||||
<ion-icon item-start>
|
||||
<img src="assets/img/icon-wallet.svg" class="icon-wallet">
|
||||
</ion-icon>
|
||||
|
|
|
@ -5,6 +5,7 @@ import { ProfileProvider } from '../../providers/profile/profile';
|
|||
import { ReleaseProvider } from '../../providers/release/release';
|
||||
import { WalletProvider } from '../../providers/wallet/wallet';
|
||||
import { BwcErrorProvider } from '../../providers/bwc-error/bwc-error';
|
||||
import { WalletDetailsPage } from '../wallet-details/wallet-details';
|
||||
import * as _ from 'lodash';
|
||||
import * as moment from 'moment';
|
||||
|
||||
|
@ -64,4 +65,8 @@ export class HomePage {
|
|||
public goToAddView(): void {
|
||||
this.navCtrl.push(AddPage);
|
||||
}
|
||||
|
||||
goToWalletDetails(wallet: any) {
|
||||
this.navCtrl.push(WalletDetailsPage, {wallet: wallet});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
<ion-header>
|
||||
<ion-navbar>
|
||||
<ion-title>{{wallet.name}}</ion-title>
|
||||
</ion-navbar>
|
||||
</ion-header>
|
||||
|
||||
<ion-content>
|
||||
hello
|
||||
</ion-content>
|
|
@ -1,9 +1,18 @@
|
|||
import { Component } from '@angular/core';
|
||||
import { NavParams } from 'ionic-angular';
|
||||
|
||||
@Component({
|
||||
selector: 'page-wallet-details',
|
||||
templateUrl: 'wallet-details.html'
|
||||
})
|
||||
export class WalletDetailsPage {
|
||||
|
||||
public wallet: any;
|
||||
|
||||
constructor(
|
||||
private navParams: NavParams,
|
||||
) {
|
||||
this.wallet = this.navParams.data.wallet;
|
||||
}
|
||||
|
||||
ionViewDidEnter() {}
|
||||
}
|
Loading…
Reference in New Issue