2019-10-23 12:30:52 -04:00
|
|
|
import Component from "@ember/component";
|
2019-11-07 16:38:28 -05:00
|
|
|
import discourseComputed from "discourse-common/utils/decorators";
|
2016-09-13 15:14:17 -04:00
|
|
|
|
2019-10-23 12:30:52 -04:00
|
|
|
export default Component.extend({
|
2016-09-13 15:14:17 -04:00
|
|
|
classNames: ["invite-list-user"],
|
|
|
|
|
2019-11-07 16:38:28 -05:00
|
|
|
@discourseComputed("user.role")
|
2016-09-13 15:14:17 -04:00
|
|
|
roleName(role) {
|
2019-05-27 04:15:39 -04:00
|
|
|
return this.roles.findBy("id", role).label;
|
2016-09-13 15:14:17 -04:00
|
|
|
},
|
|
|
|
});
|