wire slide to accept component to proposal accept screen

This commit is contained in:
Marty Alcala 2016-10-10 18:52:59 -04:00
commit 82ad31724b
4 changed files with 58 additions and 13 deletions

View file

@ -8,7 +8,8 @@ angular.module('copayApp.directives')
transclude: true,
scope: {
isShown: '=slideSuccessShow',
onConfirm: '&slideSuccessOnConfirm'
onConfirm: '&slideSuccessOnConfirm',
hideOnConfirm: '=slideSuccessHideOnConfirm'
},
link: function(scope, element, attrs) {
var elm = element[0];
@ -23,8 +24,10 @@ angular.module('copayApp.directives')
});
scope.onConfirmButtonClick = function() {
scope.onConfirm();
scope.fillScreen = false;
elm.style.display = 'none';
if(scope.hideOnConfirm) {
scope.fillScreen = false;
elm.style.display = 'none';
}
};
}
};