Fix the drive toolbar not displaying the displayName
This commit is contained in:
parent
538e85c080
commit
56aaeea003
@ -538,7 +538,7 @@ define([
|
|||||||
// User dropdown
|
// User dropdown
|
||||||
if (config.displayed.indexOf('useradmin') !== -1) {
|
if (config.displayed.indexOf('useradmin') !== -1) {
|
||||||
var userMenuCfg = {};
|
var userMenuCfg = {};
|
||||||
if (config.userData) {
|
if (!config.hideDisplayName) {
|
||||||
userMenuCfg = {
|
userMenuCfg = {
|
||||||
displayNameCls: USERNAME_CLS,
|
displayNameCls: USERNAME_CLS,
|
||||||
changeNameButtonCls: USERBUTTON_CLS,
|
changeNameButtonCls: USERBUTTON_CLS,
|
||||||
|
|||||||
@ -115,7 +115,8 @@ define([
|
|||||||
share: {
|
share: {
|
||||||
secret: secret,
|
secret: secret,
|
||||||
channel: hexFileName
|
channel: hexFileName
|
||||||
}
|
},
|
||||||
|
hideDisplayName: true
|
||||||
};
|
};
|
||||||
Toolbar.create($bar, null, null, null, null, configTb);
|
Toolbar.create($bar, null, null, null, null, configTb);
|
||||||
var $rightside = $bar.find('.' + Toolbar.constants.rightside);
|
var $rightside = $bar.find('.' + Toolbar.constants.rightside);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user