Bug 998523 - updateUI after logout. r=markh, a=sledru
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Thu, 15 May 2014 00:09:23 +0100
changeset 199212 81edb9d02cccb4360aeaa47b5dabfa4d09d20090
parent 199211 f961ef4e1c14db8d72140348a6fb9f99e48fef7d
child 199213 731c627e0059e57f55efa879c05f4530a5ded2b4
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarkh, sledru
bugs998523
milestone31.0a2
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
@@ -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();