mirror of https://github.com/zulip/zulip.git
Update own name in sidebar when updating name globally.
We now add the my_fullname class to the entry for you in the sidebar so that we can automatically update this element when changing your name. This closes trac #979. (imported from commit f1473d6bb6f18810311d42c85d4b57aab9966498)
This commit is contained in:
parent
34ecfb339f
commit
f73929c952
|
@ -1004,6 +1004,9 @@ exports.set_presence_list = function (users, presence_info) {
|
|||
.text(name))
|
||||
.addClass('user_' + type)
|
||||
.attr('title', name + presence_descriptions[type]);
|
||||
if (email === this.email) {
|
||||
entry.addClass('my_fullname');
|
||||
}
|
||||
$('#user_presences').append(entry);
|
||||
}
|
||||
|
||||
|
|
|
@ -132,7 +132,7 @@ a:hover code {
|
|||
padding-left: 0.5em;
|
||||
}
|
||||
|
||||
.my_fullname {
|
||||
#my_information .my_fullname {
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue