mirror of https://github.com/BTCPrivate/copay.git
hide note fields if ! sharedEncryptedKey
This commit is contained in:
parent
9dc2c40242
commit
ce263e9a6e
|
@ -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>
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue