mirror of
https://github.com/flarum/framework.git
synced 2025-02-22 08:56:42 +08:00
Fix user bio placeholder not showing up
This commit is contained in:
parent
2e4d38b3e7
commit
ecb1023c66
@ -15,7 +15,7 @@ export default class User extends mixin(Model, {
|
|||||||
|
|
||||||
avatarUrl: Model.attribute('avatarUrl'),
|
avatarUrl: Model.attribute('avatarUrl'),
|
||||||
bio: Model.attribute('bio'),
|
bio: Model.attribute('bio'),
|
||||||
bioHtml: computed('bio', bio => '<p>' + $('<div/>').text(bio).html() + '</p>'),
|
bioHtml: computed('bio', bio => bio ? '<p>' + $('<div/>').text(bio).html() + '</p>' : ''),
|
||||||
preferences: Model.attribute('preferences'),
|
preferences: Model.attribute('preferences'),
|
||||||
groups: Model.hasMany('groups'),
|
groups: Model.hasMany('groups'),
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user