mirror of https://github.com/status-im/consul.git
26 lines
501 B
JavaScript
26 lines
501 B
JavaScript
export default function(
|
|
visitable,
|
|
clickable,
|
|
submitable,
|
|
deletable,
|
|
cancelable,
|
|
permissionsForm,
|
|
permissionsList
|
|
) {
|
|
return {
|
|
scope: 'main',
|
|
visit: visitable(['/:dc/intentions/:intention', '/:dc/intentions/create']),
|
|
permissions: {
|
|
create: {
|
|
scope: '[data-test-create-permission]',
|
|
click: clickable(),
|
|
},
|
|
form: permissionsForm(),
|
|
list: permissionsList(),
|
|
},
|
|
...submitable(),
|
|
...cancelable(),
|
|
...deletable(),
|
|
};
|
|
}
|