Fix the drive toolbar not displaying the displayName

This commit is contained in:
yflory
2017-04-28 17:03:47 +02:00
parent 538e85c080
commit 56aaeea003
2 changed files with 3 additions and 2 deletions

View File

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