mirror of https://github.com/rancher/ui.git
filter role choices to non-hidden roles
This commit is contained in:
parent
48f327f1d3
commit
4b7bf99e9d
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue