reset https flag on new scan
This commit is contained in:
parent
9eccc0a439
commit
62a6a732ed
2 changed files with 9 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.directives')
|
angular.module('copayApp.directives')
|
||||||
.directive('actionSheet', function($rootScope) {
|
.directive('actionSheet', function($rootScope, $timeout) {
|
||||||
return {
|
return {
|
||||||
restrict: 'E',
|
restrict: 'E',
|
||||||
templateUrl: 'views/includes/actionSheet.html',
|
templateUrl: 'views/includes/actionSheet.html',
|
||||||
|
|
@ -10,6 +10,13 @@ angular.module('copayApp.directives')
|
||||||
show: '=actionSheetShow',
|
show: '=actionSheetShow',
|
||||||
},
|
},
|
||||||
link: function(scope, element, attrs) {
|
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.hide = function() {
|
||||||
scope.show = false;
|
scope.show = false;
|
||||||
$rootScope.$broadcast('incomingDataMenu.menuHidden');
|
$rootScope.$broadcast('incomingDataMenu.menuHidden');
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ angular.module('copayApp.directives')
|
||||||
scope.data = data.data;
|
scope.data = data.data;
|
||||||
scope.type = data.type;
|
scope.type = data.type;
|
||||||
scope.showMenu = true;
|
scope.showMenu = true;
|
||||||
|
scope.https = false;
|
||||||
|
|
||||||
console.log('scope.type', scope.type);
|
console.log('scope.type', scope.type);
|
||||||
if(scope.type === 'url') {
|
if(scope.type === 'url') {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue