UX: username should always be case sensitive in user card
This commit is contained in:
parent
753f4d1b7b
commit
72fe3e19f4
|
@ -38,7 +38,7 @@ export default Ember.Component.extend(StringBuffer, {
|
||||||
if (users.length) {
|
if (users.length) {
|
||||||
let postUrl;
|
let postUrl;
|
||||||
users.forEach(function(u) {
|
users.forEach(function(u) {
|
||||||
const username = u.get('username_lower');
|
const username = u.get('username');
|
||||||
|
|
||||||
iconsHtml += `<a href="${Discourse.getURL("/users")}${username}" data-user-card="${username}">`;
|
iconsHtml += `<a href="${Discourse.getURL("/users")}${username}" data-user-card="${username}">`;
|
||||||
if (u.post_url) {
|
if (u.post_url) {
|
||||||
|
|
|
@ -2,5 +2,5 @@ export default Ember.Component.extend({
|
||||||
tagName: 'a',
|
tagName: 'a',
|
||||||
attributeBindings: ['href', 'data-user-card'],
|
attributeBindings: ['href', 'data-user-card'],
|
||||||
href: Ember.computed.alias('user.path'),
|
href: Ember.computed.alias('user.path'),
|
||||||
'data-user-card': Ember.computed.alias('user.username_lower')
|
'data-user-card': Ember.computed.alias('user.username')
|
||||||
});
|
});
|
||||||
|
|
|
@ -9,7 +9,7 @@ export default Ember.Component.extend(StringBuffer, {
|
||||||
buffer.push("<div class='who-liked'>");
|
buffer.push("<div class='who-liked'>");
|
||||||
let iconsHtml = "";
|
let iconsHtml = "";
|
||||||
users.forEach(function(u) {
|
users.forEach(function(u) {
|
||||||
iconsHtml += "<a href=\"" + Discourse.getURL("/users/") + u.get('username_lower') + "\" data-user-card=\"" + u.get('username_lower') + "\">";
|
iconsHtml += "<a href=\"" + Discourse.getURL("/users/") + u.get('username_lower') + "\" data-user-card=\"" + u.get('username') + "\">";
|
||||||
iconsHtml += Discourse.Utilities.avatarImg({
|
iconsHtml += Discourse.Utilities.avatarImg({
|
||||||
size: 'small',
|
size: 'small',
|
||||||
avatarTemplate: u.get('avatar_template'),
|
avatarTemplate: u.get('avatar_template'),
|
||||||
|
|
|
@ -9,8 +9,6 @@
|
||||||
<div class='user'>
|
<div class='user'>
|
||||||
{{#user-link user=au}}
|
{{#user-link user=au}}
|
||||||
{{avatar au imageSize="small"}}
|
{{avatar au imageSize="small"}}
|
||||||
{{/user-link}}
|
|
||||||
{{#user-link user=au}}
|
|
||||||
{{unbound au.username}}
|
{{unbound au.username}}
|
||||||
{{/user-link}}
|
{{/user-link}}
|
||||||
{{#if details.can_remove_allowed_users}}
|
{{#if details.can_remove_allowed_users}}
|
||||||
|
|
Loading…
Reference in New Issue