open-consul/ui/packages/consul-ui/app/components/oidc-select/chart.xstate.js

33 lines
418 B
JavaScript

export default {
id: 'oidc-select',
initial: 'idle',
on: {
RESET: [
{
target: 'idle',
},
],
},
states: {
idle: {
on: {
LOAD: [
{
target: 'loading',
},
],
},
},
loaded: {},
loading: {
on: {
SUCCESS: [
{
target: 'loaded',
},
],
},
},
},
};