mirror of
https://github.com/status-im/consul.git
synced 2025-01-25 05:00:32 +00:00
9d21736e9f
* Add copyright headers to UI files * Ensure copywrite file ignores external libs
17 lines
387 B
JavaScript
17 lines
387 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
export default (submitable, cancelable, policySelector) => () => {
|
|
return {
|
|
// this should probably be settable
|
|
resetScope: true,
|
|
scope: '[data-test-role-form]',
|
|
prefix: 'role',
|
|
...submitable(),
|
|
...cancelable(),
|
|
policies: policySelector('', '[data-test-create-policy]'),
|
|
};
|
|
};
|