From 816901378eed77c05919ead9ed281fadd45baea8 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Thu, 23 Apr 2015 19:05:44 -0300 Subject: [PATCH] fix error notifications --- public/index.html | 1 - public/views/includes/offline.html | 11 ----- public/views/walletHome.html | 73 +++++++++++++++++------------- src/css/main.css | 5 +- src/js/controllers/index.js | 3 ++ 5 files changed, 48 insertions(+), 45 deletions(-) diff --git a/public/index.html b/public/index.html index 466f32077..99add2264 100644 --- a/public/index.html +++ b/public/index.html @@ -26,7 +26,6 @@
-
diff --git a/public/views/includes/offline.html b/public/views/includes/offline.html index 9e64e0cf3..e69de29bb 100644 --- a/public/views/includes/offline.html +++ b/public/views/includes/offline.html @@ -1,11 +0,0 @@ -
-
-
- -
-
-

{{'Could not connect to Wallet Service'|translate}}

-
{{'Trying to reconnnect...'|translate}}
-
-
-
diff --git a/public/views/walletHome.html b/public/views/walletHome.html index 5ce10b389..45c9fb79d 100644 --- a/public/views/walletHome.html +++ b/public/views/walletHome.html @@ -1,6 +1,43 @@
+ +
+
+ You do not have any wallet +
+ +
+ +
+
+
+
+
+
+
+
+ Reconnecting to Wallet Server... +
+ +
+
+
+
+
+
+
+
+ Updating Wallet... + Scanning Wallet funds... + Recreating Wallet... +
+ +
+
-
@@ -27,7 +64,7 @@ ...
-
+
{{index.walletName | limitTo: 1}}
@@ -50,24 +87,8 @@
-
-
-
-
-
-
-
-
- Updating Wallet... - Scanning Wallet funds... - Recreating Wallet... -
-
+
@@ -175,7 +196,7 @@ index.onGoingProcessName == 'openingWallet'
@@ -318,7 +339,7 @@ index.onGoingProcessName == 'openingWallet' Cancel
- @@ -402,15 +423,5 @@ history
- - -
-
- You do not have any wallet -
- -
- -
diff --git a/src/css/main.css b/src/css/main.css index 8e5e605eb..25d60ef91 100644 --- a/src/css/main.css +++ b/src/css/main.css @@ -1110,12 +1110,12 @@ input.ng-invalid-match, input.ng-invalid-match:focus { .onGoingProcess { background: #213140; text-align: center; - max-width: 14.5rem; + max-width: 16.5rem; max-height: 3.5rem; top:auto; left:0; right:0; - bottom:200px; + bottom:170px; margin: auto; border-radius: 3px; color: #fff; @@ -1123,6 +1123,7 @@ input.ng-invalid-match, input.ng-invalid-match:focus { font-size: 13px; position: absolute; opacity: 0.8; + z-index: 1000; } diff --git a/src/js/controllers/index.js b/src/js/controllers/index.js index 1a5ca6f1a..5fbce2b62 100644 --- a/src/js/controllers/index.js +++ b/src/js/controllers/index.js @@ -539,6 +539,9 @@ angular.module('copayApp.controllers').controller('indexController', function($r $rootScope.$on('Local/Offline', function(event) { $log.debug('Offline event'); self.isOffline = true; + $timeout(function(){ + $rootScope.$apply(); + }); }); $rootScope.$on('Local/BackupDone', function(event) {