Bug 998523 - updateUI after logout, r=markh
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Thu, 15 May 2014 00:09:23 +0100
changeset 183218 d65835b006b49688caf8ec6843665a66f5ee5581
parent 183217 b32eb8beb7eba63b85b6b4f4b6c58f50b9c9369d
child 183219 d2214e4edf1bab324d18f05c51b1b35a6885d4d7
push id6819
push usergijskruitbosch@gmail.com
push dateThu, 15 May 2014 23:11:42 +0000
treeherderfx-team@d2214e4edf1b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarkh
bugs998523
milestone32.0a1
Bug 998523 - updateUI after logout, r=markh
browser/base/content/browser-syncui.js
--- a/browser/base/content/browser-syncui.js
+++ b/browser/base/content/browser-syncui.js
@@ -8,16 +8,17 @@ let gSyncUI = {
 
   _obs: ["weave:service:sync:start",
          "weave:service:quota:remaining",
          "weave:service:setup-complete",
          "weave:service:login:start",
          "weave:service:login:finish",
          "weave:service:logout:finish",
          "weave:service:start-over",
+         "weave:service:start-over:finish",
          "weave:ui:login:error",
          "weave:ui:sync:error",
          "weave:ui:sync:finish",
          "weave:ui:clear-error",
          "weave:eol",
   ],
 
   _unloaded: false,
@@ -501,16 +502,19 @@ let gSyncUI = {
         this.onLoginError();
         break;
       case "weave:service:logout:finish":
         this.onLogout();
         break;
       case "weave:service:start-over":
         this.onStartOver();
         break;
+      case "weave:service:start-over:finish":
+        this.updateUI();
+        break;
       case "weave:service:ready":
         this.initUI();
         break;
       case "weave:notification:added":
         this.initNotifications();
         break;
       case "weave:ui:clear-error":
         this.clearError();