discourse/app/assets/javascripts/wizard/components/invite-list-user.js.es6
2019-11-07 15:38:28 -06:00

12 lines
290 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;
}
});