mirror of https://github.com/status-im/consul.git
19 lines
688 B
JavaScript
19 lines
688 B
JavaScript
export default function(visitable, deletable, clickable, attribute, collection, radiogroup) {
|
|
return {
|
|
visit: visitable('/:dc/nodes/:node'),
|
|
tabs: radiogroup('tab', ['health-checks', 'services', 'round-trip-time', 'lock-sessions']),
|
|
healthchecks: collection('[data-test-node-healthcheck]', {
|
|
name: attribute('data-test-node-healthcheck'),
|
|
}),
|
|
services: collection('#services [data-test-tabular-row]', {
|
|
port: attribute('data-test-service-port', '.port'),
|
|
}),
|
|
sessions: collection(
|
|
'#lock-sessions [data-test-tabular-row]',
|
|
deletable({
|
|
TTL: attribute('data-test-session-ttl', '[data-test-session-ttl]'),
|
|
})
|
|
),
|
|
};
|
|
}
|