mirror of https://github.com/status-im/consul.git
ui: Fixup names of Meta for instance search, also add Node (#11774)
This commit is contained in:
parent
2c1eb052e3
commit
2f6ae96ccd
|
@ -0,0 +1,4 @@
|
||||||
|
```release-note:bug
|
||||||
|
ui: Differentiate between Service Meta and Node Meta when choosing search fields
|
||||||
|
in Service Instance listings
|
||||||
|
```
|
|
@ -7,7 +7,7 @@ export default class InstancesRoute extends Route {
|
||||||
source: 'source',
|
source: 'source',
|
||||||
searchproperty: {
|
searchproperty: {
|
||||||
as: 'searchproperty',
|
as: 'searchproperty',
|
||||||
empty: [['Name', 'Tags', 'ID', 'Address', 'Port', 'Service.Meta', 'Node.Meta']],
|
empty: [['Name', 'Node', 'Tags', 'ID', 'Address', 'Port', 'Service.Meta', 'Node.Meta']],
|
||||||
},
|
},
|
||||||
search: {
|
search: {
|
||||||
as: 'filter',
|
as: 'filter',
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
export default {
|
export default {
|
||||||
Name: item => item.Name,
|
Name: item => item.Name,
|
||||||
|
Node: item => item.Node.Node,
|
||||||
Tags: item => item.Service.Tags || [],
|
Tags: item => item.Service.Tags || [],
|
||||||
ID: item => item.Service.ID || '',
|
ID: item => item.Service.ID || '',
|
||||||
Address: item => item.Address || '',
|
Address: item => item.Address || '',
|
||||||
|
|
|
@ -30,6 +30,8 @@ consul:
|
||||||
terminating-gateway: Terminating Gateway
|
terminating-gateway: Terminating Gateway
|
||||||
mesh-gateway: Mesh Gateway
|
mesh-gateway: Mesh Gateway
|
||||||
status: Health Status
|
status: Health Status
|
||||||
|
service.meta: Service Meta
|
||||||
|
node.meta: Node Meta
|
||||||
service-name: Service Name
|
service-name: Service Name
|
||||||
node-name: Node Name
|
node-name: Node Name
|
||||||
accessorid: AccessorID
|
accessorid: AccessorID
|
||||||
|
|
Loading…
Reference in New Issue