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 () {
|
init: function () {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
set(this, 'choices', get(this,'roles').map(role => {
|
set(this, 'choices', get(this,'roles').filterBy('hidden', false).map(role => {
|
||||||
return {
|
return {
|
||||||
label: role.name,
|
label: role.name,
|
||||||
value: role.id,
|
value: role.id,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue