Fix: Custom user fields on user card could show for wrong user.
This commit is contained in:
parent
030fb71f60
commit
24ae69ce8d
|
@ -27,7 +27,7 @@ export default Ember.Controller.extend({
|
||||||
showMoreBadges: Em.computed.gt('moreBadgesCount', 0),
|
showMoreBadges: Em.computed.gt('moreBadgesCount', 0),
|
||||||
showDelete: Em.computed.and("viewingAdmin", "showName", "user.canBeDeleted"),
|
showDelete: Em.computed.and("viewingAdmin", "showName", "user.canBeDeleted"),
|
||||||
|
|
||||||
@computed('model.user_fields.@each.value')
|
@computed('user.user_fields.@each.value')
|
||||||
publicUserFields() {
|
publicUserFields() {
|
||||||
const siteUserFields = this.site.get('user_fields');
|
const siteUserFields = this.site.get('user_fields');
|
||||||
if (!Ember.isEmpty(siteUserFields)) {
|
if (!Ember.isEmpty(siteUserFields)) {
|
||||||
|
|
Loading…
Reference in New Issue