mirror of https://github.com/status-im/consul.git
25 lines
503 B
JavaScript
25 lines
503 B
JavaScript
export default function(
|
|
visitable,
|
|
deletable,
|
|
creatable,
|
|
clickable,
|
|
attribute,
|
|
collection,
|
|
text,
|
|
filter
|
|
) {
|
|
return creatable({
|
|
visit: visitable('/:dc/acls/policies'),
|
|
policies: collection(
|
|
'[data-test-tabular-row]',
|
|
deletable({
|
|
name: attribute('data-test-policy', '[data-test-policy]'),
|
|
description: text('[data-test-description]'),
|
|
policy: clickable('a'),
|
|
actions: clickable('label'),
|
|
})
|
|
),
|
|
filter: filter(),
|
|
});
|
|
}
|