Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Commit

Permalink
#48 clear all memo-related info on transaction success and show the m…
Browse files Browse the repository at this point in the history
…emo warning on the confirmation screen as well if it is missing for a known account
  • Loading branch information
lenondupe committed Dec 21, 2017
1 parent 176c6a9 commit 75fb8f2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/send-widget.controller.es6
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down
6 changes: 6 additions & 0 deletions templates/send-widget.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ <h2 class="sendPane__title">Send lumens</h2>
<span class="sendConfirm__sendingContainer__amount__info">{{widget.memoValue}}</span>
</div>
</div>
<div class="s-alert s-alert--warning" ng-if="!widget.memo && widget.memoWarningAlerts.length > 0">
<span ng-repeat="alert in widget.memoWarningAlerts">
{{alert.title}} {{alert.text}}
</span>
</div>


<button class="s-button sendConfirm__submit" ng-click="widget.confirm()">Submit transaction</button>

Expand Down

0 comments on commit 75fb8f2

Please sign in to comment.