Wallet/src/js/directives/clickToAccept.js
Matias Alejo Garcia 5745340400
better fee service
2017-06-21 17:09:33 -03:00

21 lines
552 B
JavaScript

'use strict';
angular.module('copayApp.directives')
.directive('clickToAccept', function() {
return {
restrict: 'E',
templateUrl: 'views/includes/clickToAccept.html',
transclude: true,
scope: {
sendStatus: '=clickSendStatus',
isDisabled: '=isDisabled',
},
link: function(scope, element, attrs) {
scope.$watch('sendStatus', function() {
if (scope.sendStatus !== 'success') {
scope.displaySendStatus = scope.sendStatus;
}
});
}
};
});