489b60105f
* Add before and after skip links portals * Move EmptyState and ErrorState to use a @login action/function * Move page title setting to the Route component * Add Routes and Outlets everywhere, and use those to access login modal * Add some aria-labels to the modals * Docs * Remove the label/input now we no longer need it, fixup pageobject * Add basic modal docs * Switch out old toggle names for ids * Wrap nspace Route template in a Route component * type > class
21 lines
497 B
JavaScript
21 lines
497 B
JavaScript
export default (clickable, deletable, collection, alias, policyForm) => (
|
|
scope = '#policies',
|
|
createSelector = '[data-test-policy-create]'
|
|
) => {
|
|
return {
|
|
scope: scope,
|
|
create: clickable(createSelector),
|
|
form: policyForm('#new-policy'),
|
|
policies: alias('selectedOptions'),
|
|
selectedOptions: collection(
|
|
'[data-test-policies] [data-test-tabular-row]',
|
|
deletable(
|
|
{
|
|
expand: clickable('label'),
|
|
},
|
|
'+ tr'
|
|
)
|
|
),
|
|
};
|
|
};
|