diff --git a/js/plugins/InsightStorage.js b/js/plugins/InsightStorage.js index f153ee309..4614f0c1c 100644 --- a/js/plugins/InsightStorage.js +++ b/js/plugins/InsightStorage.js @@ -37,6 +37,9 @@ InsightStorage.prototype.getItem = function(name, callback) { if (err) { return callback('Connection error'); } + if (response.statusCode === 403) { + return callback('PNOTFOUND: Profile not found'); + } if (response.statusCode !== 200) { return callback('Connection error'); } @@ -61,6 +64,9 @@ InsightStorage.prototype.setItem = function(name, value, callback) { if (err) { return callback('Connection error'); } + if (response.statusCode === 409) { + return callback('Invalid username or password'); + } if (response.statusCode !== 200) { return callback('Unable to store data on insight'); } diff --git a/js/services/identityService.js b/js/services/identityService.js index ac1730ab5..eff52061e 100644 --- a/js/services/identityService.js +++ b/js/services/identityService.js @@ -11,7 +11,7 @@ angular.module('copayApp.services') copay.Wallet.checkIfExistsAny({ pluginManager: pluginManager, }, function(anyWallet) { - scope.retreiving = false; + scope.loading = false; scope.anyProfile = anyProfile ? true : false; scope.anyWallet = anyWallet ? true : false; diff --git a/views/createProfile.html b/views/createProfile.html index d0cfa2d42..b0a0d3354 100644 --- a/views/createProfile.html +++ b/views/createProfile.html @@ -1,5 +1,5 @@
-
+
Retreiving information from storage...
diff --git a/views/home.html b/views/home.html index 5e5301f27..f74420c8b 100644 --- a/views/home.html +++ b/views/home.html @@ -1,6 +1,6 @@
-
+
Retreiving information from storage...