Filter Source and Destination menus by Kind
This commit is contained in:
parent
cbf31a467f
commit
ceabb8b439
|
@ -13,6 +13,7 @@ export default Model.extend({
|
|||
return [];
|
||||
},
|
||||
}),
|
||||
Kind: attr('string'),
|
||||
Address: attr('string'),
|
||||
Port: attr('number'),
|
||||
EnableTagOverride: attr('boolean'),
|
||||
|
|
|
@ -24,7 +24,9 @@ export default Route.extend(WithIntentionActions, {
|
|||
return {
|
||||
...model,
|
||||
...{
|
||||
items: [{ Name: '*' }].concat(model.items.toArray()),
|
||||
items: [{ Name: '*' }].concat(
|
||||
model.items.toArray().filter(item => get(item, 'Kind') === 'consul')
|
||||
),
|
||||
},
|
||||
};
|
||||
});
|
||||
|
|
|
@ -18,7 +18,9 @@ export default Route.extend(WithAclActions, {
|
|||
return {
|
||||
...model,
|
||||
...{
|
||||
items: [{ Name: '*' }].concat(model.items.toArray()),
|
||||
items: [{ Name: '*' }].concat(
|
||||
model.items.toArray().filter(item => get(item, 'Kind') === 'consul')
|
||||
),
|
||||
},
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue