diff --git a/resources/raw/config.json b/resources/raw/config.json
new file mode 100644
index 0000000..076189b
--- /dev/null
+++ b/resources/raw/config.json
@@ -0,0 +1,55 @@
+{
+ "users":[
+ {
+ "name": "Test",
+ "firstName":"Toto",
+ "email": "toto@mail.com",
+ "password": "totopwd",
+ "balance": 500.0,
+ "lastTransactions": [
+ {
+ "from":"toto@mail.com",
+ "to": "bic@mail.com",
+ "amount": 10.0,
+ "timestamp": 1539861600
+ }
+ ]
+ },
+ {
+ "name": "lePen",
+ "firstName":"Bic",
+ "email": "bic@mail.com",
+ "password": "bicpwd",
+ "balance": 10.0,
+ "lastTransactions": [
+ {
+ "from": "toto@mail.com",
+ "to": "bic@mail.com",
+ "amount": 10.0,
+ "timestamp": 1539861900
+ },
+ {
+ "from":"bic@mail.com",
+ "to":"tata@mail.com",
+ "amount": 200.0,
+ "timestamp": 1539600000
+ }
+ ]
+ },
+ {
+ "name": "tata",
+ "firstName":"",
+ "email": "tata@mail.com",
+ "password": "tataPwd",
+ "balance": 235.0,
+ "lastTransactions": [
+ {
+ "from":"bic@mail.com",
+ "to": "tata@mail.com",
+ "amount": 200,
+ "timestamp": 1539601200
+ }
+ ]
+ }
+ ]
+}
diff --git a/src/pages/home/home.html b/src/pages/home/home.html
index 3734968..9f9f2a8 100644
--- a/src/pages/home/home.html
+++ b/src/pages/home/home.html
@@ -8,19 +8,16 @@
home
-
-
-
-
-
-
-
+
+
+
+
diff --git a/src/pages/home/home.ts b/src/pages/home/home.ts
index 4ed1d2d..31fd644 100644
--- a/src/pages/home/home.ts
+++ b/src/pages/home/home.ts
@@ -33,10 +33,6 @@ export class HomePage {
this.navCtrl.push(BuyPage);
break;
}
- case 'contact':{
- this.navCtrl.push(ContactsPage);
- break;
- }
case 'send':{
this.navCtrl.push(SendPage);
break;
diff --git a/src/pages/send/send.html b/src/pages/send/send.html
index e0d7e8a..ab51b22 100644
--- a/src/pages/send/send.html
+++ b/src/pages/send/send.html
@@ -15,6 +15,7 @@
-
+
+
diff --git a/src/pages/send/send.ts b/src/pages/send/send.ts
index ecb2924..9da3329 100644
--- a/src/pages/send/send.ts
+++ b/src/pages/send/send.ts
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import {SearchPage} from "../search/search";
+import {ContactsPage} from "../contacts/contacts";
/**
* Generated class for the SendPage page.
@@ -29,6 +30,10 @@ export class SendPage {
this.navCtrl.push(SearchPage);
break;
}
+ case 'contact':{
+ this.navCtrl.push(ContactsPage);
+ break;
+ }
}
}