John Cowen 7d89e519a2 UI: New ACLs (#4789)
UI to accompany the new ACLs APIs
2018-10-19 08:45:05 -07:00

17 lines
483 B
JavaScript

export default function(visitable, submitable, deletable, cancelable, clickable, attribute, collection) {
return submitable(
cancelable(
deletable({
visit: visitable(['/:dc/acls/policies/:policy', '/:dc/acls/policies/create']),
tokens: collection(
'[data-test-tabular-row]',
deletable({
id: attribute('data-test-token', '[data-test-token]'),
token: clickable('a'),
})
),
})
)
);
}