mirror of https://github.com/status-im/consul.git
Filter Source and Destination menus by Kind
This commit is contained in:
parent
e22b9c8e15
commit
cc3d578271
|
@ -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