1
0
Fork 0
forked from lthn/blockchain

remember hide wallet option

This commit is contained in:
wildkif 2019-05-22 18:31:36 +03:00
parent bf31598062
commit ca1904b9d2
4 changed files with 21 additions and 15 deletions

View file

@ -866,7 +866,8 @@ var Wallet = /** @class */ (function () {
amount: null, amount: null,
comment: null, comment: null,
mixin: null, mixin: null,
fee: null fee: null,
hide: null
}; };
this.wallet_id = id; this.wallet_id = id;
this.name = name; this.name = name;
@ -6037,7 +6038,8 @@ var SendComponent = /** @class */ (function () {
amount: _this.variablesService.currentWallet.send_data['amount'], amount: _this.variablesService.currentWallet.send_data['amount'],
comment: _this.variablesService.currentWallet.send_data['comment'], comment: _this.variablesService.currentWallet.send_data['comment'],
mixin: _this.variablesService.currentWallet.send_data['mixin'] || 0, mixin: _this.variablesService.currentWallet.send_data['mixin'] || 0,
fee: _this.variablesService.currentWallet.send_data['fee'] || _this.variablesService.default_fee fee: _this.variablesService.currentWallet.send_data['fee'] || _this.variablesService.default_fee,
hide: _this.variablesService.currentWallet.send_data['hide'] || false
}); });
}); });
}; };
@ -6055,8 +6057,8 @@ var SendComponent = /** @class */ (function () {
_this.backend.sendMoney(_this.currentWalletId, _this.sendForm.get('address').value, _this.sendForm.get('amount').value, _this.sendForm.get('fee').value, _this.sendForm.get('mixin').value, _this.sendForm.get('comment').value, _this.sendForm.get('hide').value, function (send_status) { _this.backend.sendMoney(_this.currentWalletId, _this.sendForm.get('address').value, _this.sendForm.get('amount').value, _this.sendForm.get('fee').value, _this.sendForm.get('mixin').value, _this.sendForm.get('comment').value, _this.sendForm.get('hide').value, function (send_status) {
if (send_status) { if (send_status) {
_this.modalService.prepareModal('success', 'SEND.SUCCESS_SENT'); _this.modalService.prepareModal('success', 'SEND.SUCCESS_SENT');
_this.variablesService.currentWallet.send_data = { address: null, amount: null, comment: null, mixin: null, fee: null }; _this.variablesService.currentWallet.send_data = { address: null, amount: null, comment: null, mixin: null, fee: null, hide: null };
_this.sendForm.reset({ address: null, amount: null, comment: null, mixin: 0, fee: _this.variablesService.default_fee }); _this.sendForm.reset({ address: null, amount: null, comment: null, mixin: 0, fee: _this.variablesService.default_fee, hide: false });
} }
}); });
} }
@ -6075,8 +6077,8 @@ var SendComponent = /** @class */ (function () {
_this.sendForm.get('amount').value, _this.sendForm.get('fee').value, _this.sendForm.get('mixin').value, _this.sendForm.get('comment').value, _this.sendForm.get('hide').value, function (send_status) { _this.sendForm.get('amount').value, _this.sendForm.get('fee').value, _this.sendForm.get('mixin').value, _this.sendForm.get('comment').value, _this.sendForm.get('hide').value, function (send_status) {
if (send_status) { if (send_status) {
_this.modalService.prepareModal('success', 'SEND.SUCCESS_SENT'); _this.modalService.prepareModal('success', 'SEND.SUCCESS_SENT');
_this.variablesService.currentWallet.send_data = { address: null, amount: null, comment: null, mixin: null, fee: null }; _this.variablesService.currentWallet.send_data = { address: null, amount: null, comment: null, mixin: null, fee: null, hide: null };
_this.sendForm.reset({ address: null, amount: null, comment: null, mixin: 0, fee: _this.variablesService.default_fee }); _this.sendForm.reset({ address: null, amount: null, comment: null, mixin: 0, fee: _this.variablesService.default_fee, hide: false });
} }
}); });
} }
@ -6095,7 +6097,8 @@ var SendComponent = /** @class */ (function () {
amount: this.sendForm.get('amount').value, amount: this.sendForm.get('amount').value,
comment: this.sendForm.get('comment').value, comment: this.sendForm.get('comment').value,
mixin: this.sendForm.get('mixin').value, mixin: this.sendForm.get('mixin').value,
fee: this.sendForm.get('fee').value fee: this.sendForm.get('fee').value,
hide: this.sendForm.get('hide').value
}; };
}; };
__decorate([ __decorate([

File diff suppressed because one or more lines are too long

View file

@ -33,7 +33,8 @@ export class Wallet {
amount: null, amount: null,
comment: null, comment: null,
mixin: null, mixin: null,
fee: null fee: null,
hide: null
}; };
constructor(id, name, pass, path, address, balance, unlocked_balance, mined = 0, tracking = '') { constructor(id, name, pass, path, address, balance, unlocked_balance, mined = 0, tracking = '') {

View file

@ -126,7 +126,8 @@ export class SendComponent implements OnInit, OnDestroy {
amount: this.variablesService.currentWallet.send_data['amount'], amount: this.variablesService.currentWallet.send_data['amount'],
comment: this.variablesService.currentWallet.send_data['comment'], comment: this.variablesService.currentWallet.send_data['comment'],
mixin: this.variablesService.currentWallet.send_data['mixin'] || 0, mixin: this.variablesService.currentWallet.send_data['mixin'] || 0,
fee: this.variablesService.currentWallet.send_data['fee'] || this.variablesService.default_fee fee: this.variablesService.currentWallet.send_data['fee'] || this.variablesService.default_fee,
hide: this.variablesService.currentWallet.send_data['hide'] || false
}); });
}); });
} }
@ -151,8 +152,8 @@ export class SendComponent implements OnInit, OnDestroy {
(send_status) => { (send_status) => {
if (send_status) { if (send_status) {
this.modalService.prepareModal('success', 'SEND.SUCCESS_SENT'); this.modalService.prepareModal('success', 'SEND.SUCCESS_SENT');
this.variablesService.currentWallet.send_data = {address: null, amount: null, comment: null, mixin: null, fee: null}; this.variablesService.currentWallet.send_data = {address: null, amount: null, comment: null, mixin: null, fee: null, hide: null};
this.sendForm.reset({address: null, amount: null, comment: null, mixin: 0, fee: this.variablesService.default_fee}); this.sendForm.reset({address: null, amount: null, comment: null, mixin: 0, fee: this.variablesService.default_fee, hide: false});
} }
}); });
} }
@ -176,8 +177,8 @@ export class SendComponent implements OnInit, OnDestroy {
(send_status) => { (send_status) => {
if (send_status) { if (send_status) {
this.modalService.prepareModal('success', 'SEND.SUCCESS_SENT'); this.modalService.prepareModal('success', 'SEND.SUCCESS_SENT');
this.variablesService.currentWallet.send_data = {address: null, amount: null, comment: null, mixin: null, fee: null}; this.variablesService.currentWallet.send_data = {address: null, amount: null, comment: null, mixin: null, fee: null, hide: null};
this.sendForm.reset({address: null, amount: null, comment: null, mixin: 0, fee: this.variablesService.default_fee}); this.sendForm.reset({address: null, amount: null, comment: null, mixin: 0, fee: this.variablesService.default_fee, hide: false});
} }
}); });
} }
@ -198,7 +199,8 @@ export class SendComponent implements OnInit, OnDestroy {
amount: this.sendForm.get('amount').value, amount: this.sendForm.get('amount').value,
comment: this.sendForm.get('comment').value, comment: this.sendForm.get('comment').value,
mixin: this.sendForm.get('mixin').value, mixin: this.sendForm.get('mixin').value,
fee: this.sendForm.get('fee').value fee: this.sendForm.get('fee').value,
hide: this.sendForm.get('hide').value
}; };
} }