mirror of https://github.com/BTCPrivate/copay.git
reset https flag on new scan
This commit is contained in:
parent
9eccc0a439
commit
62a6a732ed
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.directives')
|
||||
.directive('actionSheet', function($rootScope) {
|
||||
.directive('actionSheet', function($rootScope, $timeout) {
|
||||
return {
|
||||
restrict: 'E',
|
||||
templateUrl: 'views/includes/actionSheet.html',
|
||||
|
@ -10,6 +10,13 @@ angular.module('copayApp.directives')
|
|||
show: '=actionSheetShow',
|
||||
},
|
||||
link: function(scope, element, attrs) {
|
||||
scope.$watch('show', function() {
|
||||
if(scope.show) {
|
||||
$timeout(function() { scope.revealMenu = true; }, 100);
|
||||
} else {
|
||||
scope.revealMenu = false;
|
||||
}
|
||||
});
|
||||
scope.hide = function() {
|
||||
scope.show = false;
|
||||
$rootScope.$broadcast('incomingDataMenu.menuHidden');
|
||||
|
|
|
@ -11,6 +11,7 @@ angular.module('copayApp.directives')
|
|||
scope.data = data.data;
|
||||
scope.type = data.type;
|
||||
scope.showMenu = true;
|
||||
scope.https = false;
|
||||
|
||||
console.log('scope.type', scope.type);
|
||||
if(scope.type === 'url') {
|
||||
|
|
Loading…
Reference in New Issue