From 75fb8f2146565fdfa2f8275207234b34d7615b21 Mon Sep 17 00:00:00 2001 From: lenondupe Date: Thu, 21 Dec 2017 15:01:46 +0100 Subject: [PATCH] #48 clear all memo-related info on transaction success and show the memo warning on the confirmation screen as well if it is missing for a known account --- controllers/send-widget.controller.es6 | 3 +++ templates/send-widget.template.html | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/controllers/send-widget.controller.es6 b/controllers/send-widget.controller.es6 index f1193cd..02db342 100644 --- a/controllers/send-widget.controller.es6 +++ b/controllers/send-widget.controller.es6 @@ -433,7 +433,10 @@ export default class SendWidgetController { this.destination = null; this.amount = null; this.memo = false; + this.memoType = null; + this.memoValue = null; this.lastTransactionXDR = null; + this.memoWarningAlertGroup.clear(); this.$rootScope.$broadcast('account-viewer.transaction-success'); } diff --git a/templates/send-widget.template.html b/templates/send-widget.template.html index 35f388c..e304000 100644 --- a/templates/send-widget.template.html +++ b/templates/send-widget.template.html @@ -110,6 +110,12 @@

Send lumens

{{widget.memoValue}} +
+ + {{alert.title}} {{alert.text}} + +
+