fix wording in comment popup

This commit is contained in:
Javier 2016-06-02 18:31:57 -03:00
parent 91ac072083
commit c3ca7cdf2f
2 changed files with 2 additions and 3 deletions

View File

@ -157,7 +157,7 @@
(getShortNetworkName() == 'test' ? 'test-' : '') + 'insight.bitpay.com/tx/' + btx.txid)">
<span class="text-gray" translate>See it on the blockchain</span>
</button>
<button class="button outline round dark-gray tiny" ng-click="showCommentPopup()">
<button class="button outline round dark-gray tiny" ng-click="showCommentPopup(comment)">
<span class="text-gray" translate ng-show="!comment">Add a comment <i class="ion-ios-plus-outline"></i></span>
<span class="text-gray" translate ng-show="comment">Edit comment <i class="ion-ios-compose-outline"></i></span>
</button>

View File

@ -34,8 +34,7 @@ angular.module('copayApp.controllers').controller('txDetailsController', functio
var commentPopup = $ionicPopup.show({
templateUrl: "views/includes/note.html",
title: gettextCatalog.getString('Enter a new comment'),
subTitle: gettextCatalog.getString('Save an empty content to delete it'),
title: !$scope.comment ? gettextCatalog.getString('Enter a new comment') : gettextCatalog.getString('Edit comment'),
scope: $scope,
});