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