mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 13:55:55 +00:00
fc7fe23b4d
* ui: Fix text search for upstream instances * Clean up predicates for other model types * Add some docs around DataCollection and searching * Enable UI Engineering Docs for our preview sites * Use debug CSS in dev and staging
14 lines
389 B
JavaScript
14 lines
389 B
JavaScript
const asArray = function(arr) {
|
|
return Array.isArray(arr) ? arr : arr.toArray();
|
|
};
|
|
export default {
|
|
Name: item => item.Name,
|
|
Node: item => item.Node,
|
|
Service: item => item.ServiceName,
|
|
CheckID: item => item.CheckID || '',
|
|
ID: item => item.Service.ID || '',
|
|
Notes: item => item.Notes,
|
|
Output: item => item.Output,
|
|
ServiceTags: item => asArray(item.ServiceTags || []),
|
|
};
|