wire slide to accept component to proposal accept screen
This commit is contained in:
parent
324088b5db
commit
82ad31724b
4 changed files with 58 additions and 13 deletions
|
|
@ -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';
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue