Skip to content
Snippets Groups Projects
Commit 22e93b9d authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

fix(scan): pubkey QR scanning issue - close #1002

parent eb8a4737
No related branches found
No related tags found
No related merge requests found
Pipeline #35080 failed
...@@ -19,7 +19,7 @@ angular.module('cesium.app.controllers', ['cesium.platform', 'cesium.services']) ...@@ -19,7 +19,7 @@ angular.module('cesium.app.controllers', ['cesium.platform', 'cesium.services'])
cache: false, cache: false,
url: "/lock", url: "/lock",
views: { views: {
'menuContent': { menuContent: {
templateUrl: "templates/common/view_passcode.html", templateUrl: "templates/common/view_passcode.html",
controller: 'PassCodeCtrl' controller: 'PassCodeCtrl'
} }
...@@ -421,7 +421,7 @@ function AppController($scope, $rootScope, $state, $ionicSideMenuDelegate, $q, $ ...@@ -421,7 +421,7 @@ function AppController($scope, $rootScope, $state, $ionicSideMenuDelegate, $q, $
), uri); ), uri);
// Redirect to an owned wallet // Redirect to an owned wallet
if (!action && (csWallet.isUserPubkey(res.pubkey) || csWallet.children.isUserPubkey(res.pubkey))) { if (!action && (csWallet.isUserPubkey(res.pubkey) || csWallet.children.hasPubkey(res.pubkey))) {
var wallet = csWallet.getByPubkey(res.pubkey); var wallet = csWallet.getByPubkey(res.pubkey);
return $state.go('app.view_wallet_by_id', {id: wallet.id}); return $state.go('app.view_wallet_by_id', {id: wallet.id});
} }
......
...@@ -853,7 +853,7 @@ angular.module('cesium.es.http.services', ['ngResource', 'ngApi', 'cesium.servic ...@@ -853,7 +853,7 @@ angular.module('cesium.es.http.services', ['ngResource', 'ngApi', 'cesium.servic
that.api.registerEvent('node', 'stop'); that.api.registerEvent('node', 'stop');
var exports = { angular.merge(that, {
getServer: csHttp.getServer, getServer: csHttp.getServer,
node: { node: {
summary: that.get('/node/summary'), summary: that.get('/node/summary'),
...@@ -909,12 +909,10 @@ angular.module('cesium.es.http.services', ['ngResource', 'ngApi', 'cesium.servic ...@@ -909,12 +909,10 @@ angular.module('cesium.es.http.services', ['ngResource', 'ngApi', 'cesium.servic
findObjectInTree: findObjectInTree findObjectInTree: findObjectInTree
}, },
constants: constants constants: constants
}; });
exports.constants.regexp = regexp; that.constants.regexp = regexp;
angular.merge(that, exports);
} }
// Default instance // Default instance
var service = new EsHttp(undefined, undefined, undefined, true); var service = new EsHttp(undefined, undefined, undefined, true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment