From 56aaeea003ae4e35be0b57d85807e0f513eb3b2a Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 28 Apr 2017 17:03:47 +0200 Subject: [PATCH] Fix the drive toolbar not displaying the displayName --- www/common/toolbar.js | 2 +- www/file/main.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/www/common/toolbar.js b/www/common/toolbar.js index 23de3262d..27fa00acf 100644 --- a/www/common/toolbar.js +++ b/www/common/toolbar.js @@ -538,7 +538,7 @@ define([ // User dropdown if (config.displayed.indexOf('useradmin') !== -1) { var userMenuCfg = {}; - if (config.userData) { + if (!config.hideDisplayName) { userMenuCfg = { displayNameCls: USERNAME_CLS, changeNameButtonCls: USERBUTTON_CLS, diff --git a/www/file/main.js b/www/file/main.js index e237d7a63..24ef72f2b 100644 --- a/www/file/main.js +++ b/www/file/main.js @@ -115,7 +115,8 @@ define([ share: { secret: secret, channel: hexFileName - } + }, + hideDisplayName: true }; Toolbar.create($bar, null, null, null, null, configTb); var $rightside = $bar.find('.' + Toolbar.constants.rightside);