mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 07:43:38 +08:00
12 lines
291 B
JavaScript
12 lines
291 B
JavaScript
import Component from "@ember/component";
|
|
import discourseComputed from "discourse-common/utils/decorators";
|
|
|
|
export default Component.extend({
|
|
classNames: ["invite-list-user"],
|
|
|
|
@discourseComputed("user.role")
|
|
roleName(role) {
|
|
return this.roles.findBy("id", role).label;
|
|
},
|
|
});
|