Bug 998523 - updateUI after logout. r=markh, a=sledru
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Thu, 15 May 2014 00:09:23 +0100
changeset 192302 dfcd5c18e0a8
parent 192301 28cb773f6e23
child 192303 70f056b3a700
push id3563
push userryanvm@gmail.com
push date2014-05-16 14:33 +0000
Treeherderresults
reviewersmarkh, sledru
bugs998523
milestone30.0
Bug 998523 - updateUI after logout. r=markh, a=sledru
browser/base/content/browser-syncui.js
--- a/browser/base/content/browser-syncui.js
+++ b/browser/base/content/browser-syncui.js
@@ -9,16 +9,17 @@ let gSyncUI = {
   _obs: ["weave:service:sync:start",
          "weave:service:sync:delayed",
          "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,
@@ -538,16 +539,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();