filter role choices to non-hidden roles

This commit is contained in:
Westly Wright 2018-01-05 10:57:21 -07:00
parent 48f327f1d3
commit 4b7bf99e9d
No known key found for this signature in database
GPG Key ID: 4FAB3D8673DC54A3
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ export default Component.extend({
init: function () {
this._super(...arguments);
set(this, 'choices', get(this,'roles').map(role => {
set(this, 'choices', get(this,'roles').filterBy('hidden', false).map(role => {
return {
label: role.name,
value: role.id,