2016-10-10 15:27:57 -04:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
angular.module('copayApp.directives')
|
|
|
|
|
.directive('clickToAccept', function() {
|
|
|
|
|
return {
|
|
|
|
|
restrict: 'E',
|
|
|
|
|
templateUrl: 'views/includes/clickToAccept.html',
|
|
|
|
|
transclude: true,
|
|
|
|
|
scope: {
|
|
|
|
|
sendStatus: '=clickSendStatus',
|
2017-06-21 17:09:33 -03:00
|
|
|
isDisabled: '=isDisabled',
|
2016-10-10 15:27:57 -04:00
|
|
|
},
|
|
|
|
|
link: function(scope, element, attrs) {
|
|
|
|
|
scope.$watch('sendStatus', function() {
|
2016-12-02 17:18:48 -03:00
|
|
|
if (scope.sendStatus !== 'success') {
|
2016-10-10 15:27:57 -04:00
|
|
|
scope.displaySendStatus = scope.sendStatus;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
});
|