hide note fields if ! sharedEncryptedKey

This commit is contained in:
Matias Alejo Garcia 2015-09-14 12:19:52 -03:00
parent 9dc2c40242
commit ce263e9a6e
2 changed files with 5 additions and 1 deletions

View File

@ -373,7 +373,7 @@
</div>
</div>
</div>
<div class="row">
<div class="row" ng-hide="home.hideNote">
<div class="large-12 columns">
<label for="comment"><span translate>Note</span>
<small translate ng-hide="!sendForm.comment.$pristine">optional</small>

View File

@ -679,6 +679,10 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
enumerable: true,
configurable: true
});
var fc = profileService.focusedClient;
// ToDo: use a credential's (or fc's) function for this
this.hideNote = !fc.credentials.sharedEncryptingKey;
};
this.setSendError = function(err) {