Show username if first and last name is empty (Fixed #3121)

This commit is contained in:
Emanuel Schütze 2017-03-22 09:13:33 +01:00
parent ae098b1439
commit 19d16a1ea7

View File

@ -51,6 +51,9 @@ angular.module('OpenSlidesApp.users', [])
} else {
name += [firstName, lastName].join(' ');
}
if (name.trim() === '') {
name = this.username;
}
if (title !== '') {
name = title + ' ' + name;
}