mirror of https://github.com/hashicorp/consul
30 lines
391 B
JavaScript
30 lines
391 B
JavaScript
|
export default {
|
||
|
id: 'copy-button',
|
||
|
initial: 'idle',
|
||
|
on: {
|
||
|
RESET: [
|
||
|
{
|
||
|
target: 'idle',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
states: {
|
||
|
idle: {
|
||
|
on: {
|
||
|
SUCCESS: [
|
||
|
{
|
||
|
target: 'success',
|
||
|
},
|
||
|
],
|
||
|
ERROR: [
|
||
|
{
|
||
|
target: 'error',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
success: {},
|
||
|
error: {},
|
||
|
},
|
||
|
};
|