Permalink
Browse files

Merge branch 'hotfix/0.4.8'

  • Loading branch information...
2 parents ca8b259 + 6a48797 commit 3d5e3d00e21e23f49429dca841a77510994efb6d @zeisss committed May 2, 2012
Showing with 10 additions and 2 deletions.
  1. +10 −2 web/js/desktop/DesktopClientHeader.js
@@ -30,10 +30,18 @@ function DesktopClientHeader() {
});
// Welcome the user
+ function ui_username() {
+ var user = API.user();
+ if (user) {
+ return user.name;
+ } else {
+ return "";
+ }
+ }
BUS.on('api.user', function() {
- $(".navigation .userinfo").text(API.user().name);
+ $(".navigation .userinfo").text(ui_username());
}, this);
- $(".navigation .userinfo").text(API.user().name);
+ $(".navigation .userinfo").text(ui_username());
// Show a queue status
var $rpcQueueState = $(".rpc_queue_state", this.e);

0 comments on commit 3d5e3d0

Please sign in to comment.