reset https flag on new scan

This commit is contained in:
Marty Alcala 2016-10-19 15:23:54 -04:00
parent 9eccc0a439
commit 62a6a732ed
2 changed files with 9 additions and 1 deletions

View File

@ -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');

View File

@ -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') {