Fix the drive toolbar not displaying the displayName

pull/1/head
yflory 8 years ago
parent 538e85c080
commit 56aaeea003

@ -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,

@ -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);

Loading…
Cancel
Save