Quellcode durchsuchen

popup confirmation after Send button is clicked

Eugene Papko vor 6 Jahren
Ursprung
Commit
fb8d619776

+ 1
- 1
.sourcemaps/main.js.map
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 1
- 1
src/pages/payment/payment.html Datei anzeigen

@@ -31,5 +31,5 @@
31 31
           <ion-input type="number" placeholder="Enter Amount" [(ngModel)]="trans.amount" interface="popover"></ion-input>
32 32
         </ion-item>
33 33
 
34
-        <button ion-button (click) = "transferMoney()">Send BlueCoin</button>
34
+        <button ion-button (click) = "transferMoney()" (click)="doAlert()">Send BlueCoin</button>
35 35
 </ion-content>

+ 12
- 1
src/pages/payment/payment.ts Datei anzeigen

@@ -1,5 +1,6 @@
1 1
 
2 2
 import { Component } from '@angular/core';
3
+import { AlertController } from 'ionic-angular';
3 4
 import { IonicPage, NavController, NavParams} from 'ionic-angular';
4 5
 import { HttpClient } from '@angular/common/http';
5 6
 import { TransactionService } from '../../providers/transaction-service';
@@ -24,7 +25,8 @@ export class PaymentPage {
24 25
     public navParams: NavParams, 
25 26
     private http: HttpClient, 
26 27
     public transfer: TransactionService,
27
-    public walletService: WalletService) {
28
+    public walletService: WalletService,
29
+    private alertCtrl: AlertController) {
28 30
  this.navCtrl = navCtrl;
29 31
 //  this.fromId = document.getElementByIdaa;
30 32
 //  this.toId ='';
@@ -47,4 +49,13 @@ export class PaymentPage {
47 49
       this.transfer.postTransactions("checkTx", this.trans).subscribe(data => console.log(data))
48 50
   }
49 51
 
52
+  doAlert() {
53
+    let alert = this.alertCtrl.create({
54
+      //title: 'Payment',
55
+      subTitle: 'Payment is completed!',
56
+      buttons: ['Ok']
57
+    });
58
+    alert.present();
59
+  }
60
+
50 61
 }

+ 1
- 1
src/pages/transactions/transactions.scss Datei anzeigen

@@ -4,5 +4,5 @@
4 4
      background: rgba(255,255,255,0);
5 5
 
6 6
     ion-content { background-color: transparent !important; }
7
+    }
7 8
   }
8
-  }

+ 7
- 0
src/theme/variables.scss Datei anzeigen

@@ -86,3 +86,10 @@ $colors: (
86 86
 
87 87
 @import "roboto";
88 88
 @import "noto-sans";
89
+
90
+//$refresher-border-color:	#fff;
91
+//$refresher-icon-color:	#fff;
92
+$refresher-icon-font-size:	30px;
93
+//$refresher-text-color:	#fff;
94
+$refresher-text-font-size:	24px;
95
+

+ 1
- 1
www/build/main.css Datei anzeigen

@@ -17265,7 +17265,7 @@ ion-refresher-content {
17265 17265
 .refresher-pulling-text,
17266 17266
 .refresher-refreshing-text {
17267 17267
   text-align: center;
17268
-  font-size: 16px;
17268
+  font-size: 24px;
17269 17269
   color: #000;
17270 17270
 }
17271 17271
 

+ 50
- 43
www/build/main.js Datei anzeigen

@@ -22,10 +22,10 @@ webpackEmptyAsyncContext.id = 115;
22 22
 
23 23
 var map = {
24 24
 	"../pages/payment/payment.module": [
25
-		158
25
+		159
26 26
 	],
27 27
 	"../pages/transactions/transactions.module": [
28
-		159
28
+		158
29 29
 	],
30 30
 	"../pages/wallet/wallet.module": [
31 31
 		160
@@ -52,12 +52,11 @@ module.exports = webpackAsyncContext;
52 52
 
53 53
 "use strict";
54 54
 Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
55
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PaymentPageModule", function() { return PaymentPageModule; });
55
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransactionPageModule", function() { return TransactionPageModule; });
56 56
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
57 57
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
58
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__payment__ = __webpack_require__(81);
58
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__transactions__ = __webpack_require__(58);
59 59
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__ = __webpack_require__(41);
60
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_transaction_transaction__ = __webpack_require__(258);
61 60
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
62 61
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
63 62
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -68,28 +67,26 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
68 67
 
69 68
 
70 69
 
71
-
72
-var PaymentPageModule = /** @class */ (function () {
73
-    function PaymentPageModule() {
70
+var TransactionPageModule = /** @class */ (function () {
71
+    function TransactionPageModule() {
74 72
     }
75
-    PaymentPageModule = __decorate([
73
+    TransactionPageModule = __decorate([
76 74
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
77 75
             declarations: [
78
-                __WEBPACK_IMPORTED_MODULE_2__payment__["a" /* PaymentPage */],
79
-                __WEBPACK_IMPORTED_MODULE_4__components_transaction_transaction__["a" /* TransactionComponent */]
76
+                __WEBPACK_IMPORTED_MODULE_2__transactions__["a" /* TransactionPage */],
80 77
             ],
81 78
             imports: [
82
-                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["d" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__payment__["a" /* PaymentPage */]),
79
+                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__transactions__["a" /* TransactionPage */]),
83 80
             ],
84 81
             providers: [
85 82
                 __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__["a" /* TransactionService */],
86 83
             ],
87 84
         })
88
-    ], PaymentPageModule);
89
-    return PaymentPageModule;
85
+    ], TransactionPageModule);
86
+    return TransactionPageModule;
90 87
 }());
91 88
 
92
-//# sourceMappingURL=payment.module.js.map
89
+//# sourceMappingURL=transactions.module.js.map
93 90
 
94 91
 /***/ }),
95 92
 
@@ -98,11 +95,12 @@ var PaymentPageModule = /** @class */ (function () {
98 95
 
99 96
 "use strict";
100 97
 Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
101
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransactionPageModule", function() { return TransactionPageModule; });
98
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PaymentPageModule", function() { return PaymentPageModule; });
102 99
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
103 100
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
104
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__transactions__ = __webpack_require__(58);
101
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__payment__ = __webpack_require__(81);
105 102
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__ = __webpack_require__(41);
103
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_transaction_transaction__ = __webpack_require__(258);
106 104
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
107 105
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
108 106
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -113,26 +111,28 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
113 111
 
114 112
 
115 113
 
116
-var TransactionPageModule = /** @class */ (function () {
117
-    function TransactionPageModule() {
114
+
115
+var PaymentPageModule = /** @class */ (function () {
116
+    function PaymentPageModule() {
118 117
     }
119
-    TransactionPageModule = __decorate([
118
+    PaymentPageModule = __decorate([
120 119
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
121 120
             declarations: [
122
-                __WEBPACK_IMPORTED_MODULE_2__transactions__["a" /* TransactionPage */],
121
+                __WEBPACK_IMPORTED_MODULE_2__payment__["a" /* PaymentPage */],
122
+                __WEBPACK_IMPORTED_MODULE_4__components_transaction_transaction__["a" /* TransactionComponent */]
123 123
             ],
124 124
             imports: [
125
-                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["d" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__transactions__["a" /* TransactionPage */]),
125
+                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__payment__["a" /* PaymentPage */]),
126 126
             ],
127 127
             providers: [
128 128
                 __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__["a" /* TransactionService */],
129 129
             ],
130 130
         })
131
-    ], TransactionPageModule);
132
-    return TransactionPageModule;
131
+    ], PaymentPageModule);
132
+    return PaymentPageModule;
133 133
 }());
134 134
 
135
-//# sourceMappingURL=transactions.module.js.map
135
+//# sourceMappingURL=payment.module.js.map
136 136
 
137 137
 /***/ }),
138 138
 
@@ -165,7 +165,7 @@ var WalletPageModule = /** @class */ (function () {
165 165
                 __WEBPACK_IMPORTED_MODULE_2__wallet__["a" /* WalletPage */],
166 166
             ],
167 167
             imports: [
168
-                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["d" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__wallet__["a" /* WalletPage */]),
168
+                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__wallet__["a" /* WalletPage */]),
169 169
             ],
170 170
             providers: [
171 171
                 __WEBPACK_IMPORTED_MODULE_3__providers_wallet_service__["a" /* WalletService */],
@@ -220,7 +220,7 @@ var WalletPage = /** @class */ (function () {
220 220
         Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["m" /* Component */])({
221 221
             selector: 'page-wallet',template:/*ion-inline-start:"/Users/yauhenip/Projects/blueCoin-UI/src/pages/wallet/wallet.html"*/'<ion-header>\n  <ion-navbar>\n    <ion-title>ZipCoin Blue Wallet</ion-title>\n  </ion-navbar>\n</ion-header>\n\n<ion-content padding>\n    <ion-refresher (ionRefresh)="doRefresh($event);">\n        <ion-refresher-content\n          pullingText="Pull to refresh"\n          pullingIcon="arrow-dropdown"\n          refreshingSpinner="circles"\n          refreshingText="...fetching...">\n        </ion-refresher-content>\n      </ion-refresher>\n  <ion-list>\n    <ion-item *ngFor="let wallet of wallets">\n        <ion-card>\n            <ion-card-header>\n               Name: <h2>{{wallet.name}}</h2>\n            </ion-card-header>\n            <ion-card-content>\n     Balance: <h2>{{wallet.amount}}</h2>\n     Public Key: <h2>{{wallet.publicId}}</h2>\n      \n    </ion-card-content>\n  </ion-card>\n    </ion-item>\n  </ion-list>\n  \n</ion-content>'/*ion-inline-end:"/Users/yauhenip/Projects/blueCoin-UI/src/pages/wallet/wallet.html"*/,
222 222
         }),
223
-        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_2_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["f" /* NavParams */], __WEBPACK_IMPORTED_MODULE_0__providers_wallet_service__["a" /* WalletService */]])
223
+        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_2_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["g" /* NavParams */], __WEBPACK_IMPORTED_MODULE_0__providers_wallet_service__["a" /* WalletService */]])
224 224
     ], WalletPage);
225 225
     return WalletPage;
226 226
 }());
@@ -300,7 +300,7 @@ var HomePage = /** @class */ (function () {
300 300
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
301 301
             selector: 'page-home',template:/*ion-inline-start:"/Users/yauhenip/Projects/blueCoin-UI/src/pages/home/home.html"*/'<ion-header>\n  <ion-navbar>\n    <ion-title>BlueCoin</ion-title>\n  </ion-navbar>\n</ion-header>\n\n<ion-content padding>\n  <h2>Blockchain</h2>\n  <div>\n  <ion-item>\n      <ion-label color="primary" stacked>Blockchain</ion-label>\n      <ion-input type="number" placeholder="Block"></ion-input>\n    </ion-item>\n    <ion-item>\n        <ion-label color="primary" stacked>Nonce</ion-label>\n        <ion-input type="number" placeholder="Nonce"></ion-input>\n      </ion-item>\n      <ion-item>\n          <ion-label color="primary" stacked>Transaction Data</ion-label>\n          <p></p>\n          <ion-input type="number" placeholder="Data"></ion-input>\n        </ion-item>\n        <ion-item>\n            <ion-label color="primary" stacked>Hash</ion-label>\n            <ion-input type="number" disabled placeholder="Hash"></ion-input>\n          </ion-item>\n          <button ion-button block>Mine</button></div>\n  <!-- <div id="block1chain1well" class="well well-success">\n    <form class="form-horizontal">\n      <div class="form-group">\n        <label for="block1chain1number" class="col-sm-2 control-label">Block:</label>\n        <div class="col-sm-10">\n          <div class="input-group">\n            <span class="input-group-addon">#</span>\n            <input id="block1chain1number" type="text" value="1" onkeyup="updateHash(1, 1);" class="form-control"></div>\n          </div></div><div class="form-group">\n            <label for="block1chain1nonce" class="col-sm-2 control-label">Nonce:</label>\n            <div class="col-sm-10"><input id="block1chain1nonce" type="text" value="72608" onkeyup="updateHash(1, 1);" class="form-control"></div>\n          </div><div class="form-group"><label for="block1chain1data" class="col-sm-2 control-label">Data:</label>\n            <div class="col-sm-10">\n              <textarea id="block1chain1data" rows="10" onkeyup="updateHash(1, 1);" class="form-control">\n\n              </textarea></div></div><div id="state" class="form-group">\n                <label for="block1chain1hash" class="col-sm-2 control-label">Hash:</label><div class="col-sm-10">\n                  <input id="block1chain1hash" type="text" disabled="" class="form-control">\n                </div></div><div class="form-group"><div class="col-sm-2">\n                  <i class="icon-spinner icon-spin icon-large">\n\n                  </i></div><div class="col-sm-10">\n                    <button id="block1chain1mineButton" data-style="expand-right" class="btn btn-primary ladda-button">\n                      <span class="ladda-label">Mine</span></button></div></div></form></div> -->'/*ion-inline-end:"/Users/yauhenip/Projects/blueCoin-UI/src/pages/home/home.html"*/
302 302
         }),
303
-        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */]])
303
+        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */]])
304 304
     ], HomePage);
305 305
     return HomePage;
306 306
 }());
@@ -339,9 +339,9 @@ Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* pl
339 339
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_wallet_wallet_module__ = __webpack_require__(160);
340 340
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__ionic_native_status_bar__ = __webpack_require__(201);
341 341
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__ionic_native_splash_screen__ = __webpack_require__(204);
342
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_transactions_transactions_module__ = __webpack_require__(159);
342
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_transactions_transactions_module__ = __webpack_require__(158);
343 343
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_payment_payment__ = __webpack_require__(81);
344
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__pages_payment_payment_module__ = __webpack_require__(158);
344
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__pages_payment_payment_module__ = __webpack_require__(159);
345 345
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__providers_transaction_service__ = __webpack_require__(41);
346 346
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__providers_wallet_service__ = __webpack_require__(48);
347 347
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
@@ -382,15 +382,15 @@ var AppModule = /** @class */ (function () {
382 382
                 __WEBPACK_IMPORTED_MODULE_11__pages_transactions_transactions_module__["TransactionPageModule"],
383 383
                 __WEBPACK_IMPORTED_MODULE_13__pages_payment_payment_module__["PaymentPageModule"],
384 384
                 __WEBPACK_IMPORTED_MODULE_5__angular_common_http__["b" /* HttpClientModule */],
385
-                __WEBPACK_IMPORTED_MODULE_3_ionic_angular__["c" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_4__app_component__["a" /* MyApp */], {}, {
385
+                __WEBPACK_IMPORTED_MODULE_3_ionic_angular__["d" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_4__app_component__["a" /* MyApp */], {}, {
386 386
                     links: [
387
-                        { loadChildren: '../pages/payment/payment.module#PaymentPageModule', name: 'PaymentPage', segment: 'payment', priority: 'low', defaultHistory: [] },
388 387
                         { loadChildren: '../pages/transactions/transactions.module#TransactionPageModule', name: 'TransactionPage', segment: 'transactions', priority: 'low', defaultHistory: [] },
388
+                        { loadChildren: '../pages/payment/payment.module#PaymentPageModule', name: 'PaymentPage', segment: 'payment', priority: 'low', defaultHistory: [] },
389 389
                         { loadChildren: '../pages/wallet/wallet.module#WalletPageModule', name: 'WalletPage', segment: 'wallet', priority: 'low', defaultHistory: [] }
390 390
                     ]
391 391
                 })
392 392
             ],
393
-            bootstrap: [__WEBPACK_IMPORTED_MODULE_3_ionic_angular__["a" /* IonicApp */]],
393
+            bootstrap: [__WEBPACK_IMPORTED_MODULE_3_ionic_angular__["b" /* IonicApp */]],
394 394
             entryComponents: [
395 395
                 __WEBPACK_IMPORTED_MODULE_4__app_component__["a" /* MyApp */],
396 396
                 __WEBPACK_IMPORTED_MODULE_6__pages_home_home__["a" /* HomePage */],
@@ -403,7 +403,7 @@ var AppModule = /** @class */ (function () {
403 403
                 __WEBPACK_IMPORTED_MODULE_10__ionic_native_splash_screen__["a" /* SplashScreen */],
404 404
                 __WEBPACK_IMPORTED_MODULE_14__providers_transaction_service__["a" /* TransactionService */],
405 405
                 __WEBPACK_IMPORTED_MODULE_15__providers_wallet_service__["a" /* WalletService */],
406
-                { provide: __WEBPACK_IMPORTED_MODULE_1__angular_core__["u" /* ErrorHandler */], useClass: __WEBPACK_IMPORTED_MODULE_3_ionic_angular__["b" /* IonicErrorHandler */] },
406
+                { provide: __WEBPACK_IMPORTED_MODULE_1__angular_core__["u" /* ErrorHandler */], useClass: __WEBPACK_IMPORTED_MODULE_3_ionic_angular__["c" /* IonicErrorHandler */] },
407 407
             ]
408 408
         })
409 409
     ], AppModule);
@@ -492,7 +492,7 @@ var MyApp = /** @class */ (function () {
492 492
     MyApp = __decorate([
493 493
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/yauhenip/Projects/blueCoin-UI/src/app/app.html"*/'<ion-nav [root]="rootPage"></ion-nav>\n'/*ion-inline-end:"/Users/yauhenip/Projects/blueCoin-UI/src/app/app.html"*/
494 494
         }),
495
-        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* Platform */], __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */], __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */]])
495
+        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* Platform */], __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */], __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */]])
496 496
     ], MyApp);
497 497
     return MyApp;
498 498
 }());
@@ -620,7 +620,7 @@ var TransactionPage = /** @class */ (function () {
620 620
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
621 621
             selector: 'page-transactions',template:/*ion-inline-start:"/Users/yauhenip/Projects/blueCoin-UI/src/pages/transactions/transactions.html"*/'<ion-header>\n  <ion-navbar>\n    <ion-title>\n      Blockchain\n    </ion-title>\n  </ion-navbar>\n</ion-header>\n\n  \n<ion-content padding>\n  <ion-refresher (ionRefresh)="doRefresh($event);">\n   <ion-refresher-content\n      pullingText="Pull to refresh"\n      pullingIcon="arrow-dropdown"\n      refreshingSpinner="circles"\n      refreshingText="...fetching...">\n    </ion-refresher-content>\n  </ion-refresher>\n  <ion-list>\n    <ion-item *ngFor="let transaction of transactions">\n      <ion-card>\n          <ion-card-content>\n              Date: <h4>{{transaction.timestamp}}</h4>\n              Sender: <h4>{{transaction.fromId}}</h4>\n              Receiver: <h4>{{transaction.toId}}</h4>\n              Amount: <h4>{{transaction.amount}}</h4>\n              TransactionId<h4>{{transaction.transactionId}}</h4>\n  </ion-card-content>\n</ion-card>\n  </ion-item>\n  </ion-list>\n</ion-content>'/*ion-inline-end:"/Users/yauhenip/Projects/blueCoin-UI/src/pages/transactions/transactions.html"*/,
622 622
         }),
623
-        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */], __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__["a" /* TransactionService */]])
623
+        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */], __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__["a" /* TransactionService */]])
624 624
     ], TransactionPage);
625 625
     return TransactionPage;
626 626
 }());
@@ -653,13 +653,15 @@ var __metadata = (this && this.__metadata) || function (k, v) {
653 653
 
654 654
 
655 655
 
656
+
656 657
 var PaymentPage = /** @class */ (function () {
657
-    function PaymentPage(navCtrl, navParams, http, transfer, walletService) {
658
+    function PaymentPage(navCtrl, navParams, http, transfer, walletService, alertCtrl) {
658 659
         this.navCtrl = navCtrl;
659 660
         this.navParams = navParams;
660 661
         this.http = http;
661 662
         this.transfer = transfer;
662 663
         this.walletService = walletService;
664
+        this.alertCtrl = alertCtrl;
663 665
         //trans: TransactionComponent =  new TransactionComponent(this.fromId, this.toId, this.amount);
664 666
         this.trans = { fromId: '', toId: '', amount: '' };
665 667
         this.navCtrl = navCtrl;
@@ -681,17 +683,22 @@ var PaymentPage = /** @class */ (function () {
681 683
         console.log(this.trans);
682 684
         this.transfer.postTransactions("checkTx", this.trans).subscribe(function (data) { return console.log(data); });
683 685
     };
686
+    PaymentPage.prototype.doAlert = function () {
687
+        var alert = this.alertCtrl.create({
688
+            //title: 'Payment',
689
+            subTitle: 'Payment is completed!',
690
+            buttons: ['Ok']
691
+        });
692
+        alert.present();
693
+    };
684 694
     PaymentPage = __decorate([
685 695
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
686
-            selector: 'page-payment',template:/*ion-inline-start:"/Users/yauhenip/Projects/blueCoin-UI/src/pages/payment/payment.html"*/'<ion-header>\n  <ion-navbar>\n    <ion-title>BlueCoin</ion-title>\n  </ion-navbar>\n</ion-header>\n\n<ion-content padding>\n    <div padding>\n   </div>\n  <ion-item>\n     \n           <ion-label color="primary" stacked>Please select your ID</ion-label>\n      <!-- <ion-input type="string" [(ngModel)]="trans.fromId"></ion-input> // Can type ID manually-->\n    \n          <ion-select [(ngModel)]="trans.fromId" interface="popover">\n              <ion-option *ngFor="let wallet of wallets" value="{{wallet.publicId}}">{{wallet.name}}</ion-option>\n          </ion-select>\n        </ion-item>\n    \n    \n    <ion-item >\n        <ion-label color="primary" stacked >Who would you like to receive BlueCoin?</ion-label>\n        <!-- <ion-input type="string"[(ngModel)]="trans.fromId"></ion-input> Can type ID mamaully-->\n        <ion-select [(ngModel)]="trans.toId" interface="popover" >\n            <ion-option *ngFor="let wallet of wallets" value="{{wallet.publicId}}">{{wallet.name}}</ion-option>\n          </ion-select>\n      </ion-item>\n\n      <ion-item>\n          <ion-label color="primary" stacked>Amount</ion-label>\n          <ion-input type="number" placeholder="Enter Amount" [(ngModel)]="trans.amount" interface="popover"></ion-input>\n        </ion-item>\n\n        <button ion-button (click) = "transferMoney()">Send BlueCoin</button>\n</ion-content>'/*ion-inline-end:"/Users/yauhenip/Projects/blueCoin-UI/src/pages/payment/payment.html"*/,
696
+            selector: 'page-payment',template:/*ion-inline-start:"/Users/yauhenip/Projects/blueCoin-UI/src/pages/payment/payment.html"*/'<ion-header>\n  <ion-navbar>\n    <ion-title>BlueCoin</ion-title>\n  </ion-navbar>\n</ion-header>\n\n<ion-content padding>\n    <div padding>\n   </div>\n  <ion-item>\n     \n           <ion-label color="primary" stacked>Please select your ID</ion-label>\n      <!-- <ion-input type="string" [(ngModel)]="trans.fromId"></ion-input> // Can type ID manually-->\n    \n          <ion-select [(ngModel)]="trans.fromId" interface="popover">\n              <ion-option *ngFor="let wallet of wallets" value="{{wallet.publicId}}">{{wallet.name}}</ion-option>\n          </ion-select>\n        </ion-item>\n    \n    \n    <ion-item >\n        <ion-label color="primary" stacked >Who would you like to receive BlueCoin?</ion-label>\n        <!-- <ion-input type="string"[(ngModel)]="trans.fromId"></ion-input> Can type ID mamaully-->\n        <ion-select [(ngModel)]="trans.toId" interface="popover" >\n            <ion-option *ngFor="let wallet of wallets" value="{{wallet.publicId}}">{{wallet.name}}</ion-option>\n          </ion-select>\n      </ion-item>\n\n      <ion-item>\n          <ion-label color="primary" stacked>Amount</ion-label>\n          <ion-input type="number" placeholder="Enter Amount" [(ngModel)]="trans.amount" interface="popover"></ion-input>\n        </ion-item>\n\n        <button ion-button (click) = "transferMoney()" (click)="doAlert()">Send BlueCoin</button>\n</ion-content>'/*ion-inline-end:"/Users/yauhenip/Projects/blueCoin-UI/src/pages/payment/payment.html"*/,
687 697
         }),
688
-        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */],
689
-            __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */],
690
-            __WEBPACK_IMPORTED_MODULE_2__angular_common_http__["a" /* HttpClient */],
691
-            __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__["a" /* TransactionService */],
692
-            __WEBPACK_IMPORTED_MODULE_4__providers_wallet_service__["a" /* WalletService */]])
698
+        __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_2__angular_common_http__["a" /* HttpClient */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__angular_common_http__["a" /* HttpClient */]) === "function" && _c || Object, typeof (_d = typeof __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__["a" /* TransactionService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__["a" /* TransactionService */]) === "function" && _d || Object, typeof (_e = typeof __WEBPACK_IMPORTED_MODULE_4__providers_wallet_service__["a" /* WalletService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_4__providers_wallet_service__["a" /* WalletService */]) === "function" && _e || Object, typeof (_f = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["a" /* AlertController */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["a" /* AlertController */]) === "function" && _f || Object])
693 699
     ], PaymentPage);
694 700
     return PaymentPage;
701
+    var _a, _b, _c, _d, _e, _f;
695 702
 }());
696 703
 
697 704
 //# sourceMappingURL=payment.js.map

+ 1
- 1
www/build/main.js.map
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 8
- 8
www/build/vendor.js Datei anzeigen

@@ -33838,7 +33838,7 @@ var Item = (function (_super) {
33838 33838
 
33839 33839
 "use strict";
33840 33840
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_app_app_root__ = __webpack_require__(59);
33841
-/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__components_app_app_root__["b"]; });
33841
+/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__components_app_app_root__["b"]; });
33842 33842
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_app_menu_controller__ = __webpack_require__(27);
33843 33843
 /* unused harmony reexport MenuController */
33844 33844
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_action_sheet_action_sheet__ = __webpack_require__(61);
@@ -33850,7 +33850,7 @@ var Item = (function (_super) {
33850 33850
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_alert_alert__ = __webpack_require__(63);
33851 33851
 /* unused harmony reexport Alert */
33852 33852
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_alert_alert_controller__ = __webpack_require__(120);
33853
-/* unused harmony reexport AlertController */
33853
+/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_6__components_alert_alert_controller__["a"]; });
33854 33854
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__components_alert_alert_component__ = __webpack_require__(64);
33855 33855
 /* unused harmony reexport AlertCmp */
33856 33856
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__components_app_app__ = __webpack_require__(6);
@@ -34059,7 +34059,7 @@ var Item = (function (_super) {
34059 34059
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_108__platform_dom_controller__ = __webpack_require__(8);
34060 34060
 /* unused harmony reexport DomController */
34061 34061
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_109__platform_platform__ = __webpack_require__(3);
34062
-/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_109__platform_platform__["a"]; });
34062
+/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_109__platform_platform__["a"]; });
34063 34063
 /* unused harmony reexport setupPlatform */
34064 34064
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_110__tap_click_haptic__ = __webpack_require__(38);
34065 34065
 /* unused harmony reexport Haptic */
@@ -34068,11 +34068,11 @@ var Item = (function (_super) {
34068 34068
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_112__navigation_ionic_page__ = __webpack_require__(269);
34069 34069
 /* unused harmony reexport IonicPage */
34070 34070
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_113__navigation_nav_controller__ = __webpack_require__(23);
34071
-/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_113__navigation_nav_controller__["a"]; });
34071
+/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_113__navigation_nav_controller__["a"]; });
34072 34072
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_114__navigation_nav_controller_base__ = __webpack_require__(43);
34073 34073
 /* unused harmony reexport NavControllerBase */
34074 34074
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_115__navigation_nav_params__ = __webpack_require__(13);
34075
-/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_115__navigation_nav_params__["a"]; });
34075
+/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_115__navigation_nav_params__["a"]; });
34076 34076
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_116__navigation_nav_util__ = __webpack_require__(22);
34077 34077
 /* unused harmony reexport DeepLinkMetadata */
34078 34078
 /* unused harmony reexport DeepLinkMetadataFactory */
@@ -34108,7 +34108,7 @@ var Item = (function (_super) {
34108 34108
 /* unused harmony reexport setupEvents */
34109 34109
 /* unused harmony reexport setupProvideEvents */
34110 34110
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_126__util_ionic_error_handler__ = __webpack_require__(273);
34111
-/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_126__util_ionic_error_handler__["a"]; });
34111
+/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_126__util_ionic_error_handler__["a"]; });
34112 34112
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_127__platform_keyboard__ = __webpack_require__(37);
34113 34113
 /* unused harmony reexport Keyboard */
34114 34114
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_128__util_form__ = __webpack_require__(16);
@@ -34131,8 +34131,8 @@ var Item = (function (_super) {
34131 34131
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_135__gestures_gesture_config__ = __webpack_require__(200);
34132 34132
 /* unused harmony reexport IonicGestureConfig */
34133 34133
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_136__module__ = __webpack_require__(274);
34134
-/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_136__module__["a"]; });
34135
-/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_136__module__["b"]; });
34134
+/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_136__module__["a"]; });
34135
+/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_136__module__["b"]; });
34136 34136
 /* unused harmony reexport provideLocationStrategy */
34137 34137
 
34138 34138
 

+ 1
- 1
www/build/vendor.js.map
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen