mirror of https://github.com/status-im/consul.git
30 lines
384 B
JavaScript
30 lines
384 B
JavaScript
|
export default {
|
||
|
id: 'form',
|
||
|
initial: 'idle',
|
||
|
on: {
|
||
|
RESET: [
|
||
|
{
|
||
|
target: 'idle',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
states: {
|
||
|
idle: {
|
||
|
on: {
|
||
|
SUCCESS: [
|
||
|
{
|
||
|
target: 'success',
|
||
|
},
|
||
|
],
|
||
|
ERROR: [
|
||
|
{
|
||
|
target: 'error',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
success: {},
|
||
|
error: {},
|
||
|
},
|
||
|
};
|