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

17 lines
339 B
Plaintext
Raw Normal View History

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