mirror of https://github.com/BTCPrivate/copay.git
Enable ngSwipe on mobile only. Disable ngSwipe if no identity loaded.
This commit is contained in:
parent
d2c4172686
commit
b9c51e1c4a
|
@ -1,12 +1,14 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('IndexController', function($scope, go) {
|
angular.module('copayApp.controllers').controller('IndexController', function($scope, go, isCordova) {
|
||||||
$scope.init = function() {
|
$scope.init = function() {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.swipe = function(invert) {
|
$scope.swipe = function(invert) {
|
||||||
|
if (isCordova) {
|
||||||
go.swipe(invert);
|
go.swipe(invert);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -27,17 +27,21 @@ angular.module('copayApp.services').factory('go', function($window, $rootScope,
|
||||||
hideSidebars();
|
hideSidebars();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
if ($rootScope.iden && !$rootScope.hideNavigation) {
|
||||||
elem.addClass('move-right');
|
elem.addClass('move-right');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
if (leftbarActive) {
|
if (leftbarActive) {
|
||||||
hideSidebars();
|
hideSidebars();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
if ($rootScope.iden && $rootScope.iden.listWallets().length >1) {
|
||||||
elem.addClass('move-left');
|
elem.addClass('move-left');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
root.openExternalLink = function(url) {
|
root.openExternalLink = function(url) {
|
||||||
|
|
Loading…
Reference in New Issue