save memo correctly
This commit is contained in:
parent
8a0d356956
commit
60a7f0c287
3 changed files with 7 additions and 3 deletions
|
|
@ -141,7 +141,6 @@
|
|||
<div class="item item-icon-right" ng-click="showCommentPopup()">
|
||||
<span class="text-gray" translate ng-show="!btx.note">Add Memo</i></span>
|
||||
<span class="text-gray" translate ng-show="btx.note">Memo</span>
|
||||
<i class="icon nav-item-arrow-right"></i>
|
||||
<div ng-show="btx.note && btx.note.body">
|
||||
<span class="enable_text_select">{{btx.note.body}}</span><br>
|
||||
<span class="text-italic item-note size-12">
|
||||
|
|
|
|||
|
|
@ -81,7 +81,12 @@ angular.module('copayApp.controllers').controller('txDetailsController', functio
|
|||
};
|
||||
|
||||
$scope.showCommentPopup = function() {
|
||||
popupService.showPrompt(gettextCatalog.getString('Memo'), ' ', {}, function(text) {
|
||||
var opts = {};
|
||||
if ($scope.btx.note && $scope.btx.note.body) opts.defaultText = $scope.btx.note.body;
|
||||
|
||||
popupService.showPrompt(null, gettextCatalog.getString('Memo'), opts, function(text) {
|
||||
if (typeof text == "undefined") return;
|
||||
|
||||
$log.debug('Saving memo');
|
||||
|
||||
var args = {
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ angular.module('copayApp.services').service('popupService', function($log, $ioni
|
|||
inputPlaceholder: opts.inputPlaceholder,
|
||||
defaultText: opts.defaultText
|
||||
}).then(function(res) {
|
||||
return cb(res)
|
||||
return cb(res);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue