discourse/app/assets/javascripts/wizard/components/invite-list-user.js.es6

11 lines
241 B
Plaintext
Raw Normal View History

2018-06-15 23:03:24 +08:00
import computed from "ember-addons/ember-computed-decorators";
2016-09-14 03:14:17 +08:00
export default Ember.Component.extend({
2018-06-15 23:03:24 +08:00
classNames: ["invite-list-user"],
2016-09-14 03:14:17 +08:00
2018-06-15 23:03:24 +08:00
@computed("user.role")
2016-09-14 03:14:17 +08:00
roleName(role) {
return this.roles.findBy("id", role).label;
2016-09-14 03:14:17 +08:00
}
});