mirror of https://github.com/hashicorp/consul
12 lines
236 B
JavaScript
12 lines
236 B
JavaScript
|
export default function(clickable, is) {
|
||
|
return function(obj) {
|
||
|
return {
|
||
|
...obj,
|
||
|
...{
|
||
|
submit: clickable('[type=submit]'),
|
||
|
submitIsEnabled: is(':not(:disabled)', '[type=submit]'),
|
||
|
},
|
||
|
};
|
||
|
};
|
||
|
}
|