make click to pay flow match slide to pay flow

This commit is contained in:
Marty Alcala 2016-10-10 15:27:57 -04:00
commit d5e72eede0
6 changed files with 82 additions and 2 deletions

View file

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