mirror of https://github.com/status-im/consul.git
15 lines
395 B
JavaScript
15 lines
395 B
JavaScript
export default (clickable, deletable, collection, alias, roleForm) => (scope = '#roles') => {
|
|
return {
|
|
scope: scope,
|
|
create: clickable('[for="new-role-toggle"]'),
|
|
form: roleForm(),
|
|
roles: alias('selectedOptions'),
|
|
selectedOptions: collection(
|
|
'[data-test-roles] [data-test-tabular-row]',
|
|
deletable({
|
|
actions: clickable('label'),
|
|
})
|
|
),
|
|
};
|
|
};
|