make action sheet come up if non paypro url has been scanned
This commit is contained in:
parent
cc7311d169
commit
73c3f1853d
5 changed files with 43 additions and 22 deletions
|
|
@ -1,16 +1,20 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.directives')
|
||||
.directive('incomingDataMenu', function($timeout) {
|
||||
.directive('incomingDataMenu', function($timeout, $rootScope) {
|
||||
return {
|
||||
restrict: 'E',
|
||||
templateUrl: 'views/includes/incomingDataMenu.html',
|
||||
link: function(scope, element, attrs) {
|
||||
console.log('incomingDataMenu constructed');
|
||||
$timeout(function() {
|
||||
$rootScope.$on('incomingDataMenu.showMenu', function() {
|
||||
scope.showMenu = true;
|
||||
}, 5000);
|
||||
|
||||
});
|
||||
scope.$watch('showMenu', function() {
|
||||
console.log('scope.showMenu', scope.showMenu);
|
||||
if(!scope.showMenu) {
|
||||
$rootScope.$broadcast('incomingDataMenu.menuHidden');
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue