apply pin logic to modal view
This commit is contained in:
parent
282f549ed0
commit
9b21292a68
6 changed files with 45 additions and 361 deletions
|
|
@ -36,25 +36,28 @@ angular.module('copayApp.services')
|
|||
}
|
||||
};
|
||||
|
||||
root.pinModal = function() {
|
||||
root.pinModal = function(action) {
|
||||
|
||||
root.pinIsOpen = true;
|
||||
root.successfullUnlocked = false;
|
||||
var scope = $rootScope.$new(true);
|
||||
$ionicModal.fromTemplateUrl('views/modals/pintestview.html', {
|
||||
console.log(action);
|
||||
console.log("###########################111");
|
||||
scope.action = action;
|
||||
$ionicModal.fromTemplateUrl('views/modals/pin.html', {
|
||||
scope: scope,
|
||||
animation: 'slide-in-up',
|
||||
backdropClickToClose: false,
|
||||
hardwareBackButtonClose: false
|
||||
}).then(function(modal) {
|
||||
scope.pintestview = modal;
|
||||
scope.pintestview.show();
|
||||
scope.pinModal = modal;
|
||||
scope.openModal();
|
||||
});
|
||||
scope.openModal = function() {
|
||||
scope.modal.show();
|
||||
scope.pinModal.show();
|
||||
};
|
||||
scope.closeModal = function() {
|
||||
scope.modal.hide();
|
||||
scope.hideModal = function() {
|
||||
scope.pinModal.hide();
|
||||
};
|
||||
// Cleanup the modal when we're done with it!
|
||||
scope.$on('$destroy', function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue