commit b99405305394e55ad6ba35899a5c05d4666c8d15
parent c65c89daeb75611e74d478afbae2ac6f624878a7
Author: Felicitus <felicitus@felicitus.org>
Date: Thu, 5 Apr 2012 06:27:13 +0200
(Hopefully) fixed the username display
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/frontend/js/Components/Session/SessionManager.js b/src/frontend/js/Components/Session/SessionManager.js
@@ -74,7 +74,11 @@ Ext.define("PartKeepr.SessionManager", {
this.setSession(response.sessionid);
this.loginDialog.destroy();
+ PartKeepr.getApplication().setAdmin(response.admin);
+ PartKeepr.getApplication().setUsername(response.username);
+
this.fireEvent("login");
+
},
/**
* Sets the session
diff --git a/src/frontend/js/PartKeepr.js b/src/frontend/js/PartKeepr.js
@@ -72,6 +72,8 @@ Ext.application({
this.setSession(this.getSessionManager().getSession());
+ this.getStatusbar().getConnectionButton().setConnected();
+
},
/**
* Displays the tip of the day window.