consul/ui/packages/consul-ui/app/machines/boolean.xstate.js

40 lines
560 B
JavaScript
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
2022-02-08 19:24:50 +00:00
export default {
id: 'boolean',
initial: 'false',
states: {
true: {
on: {
TOGGLE: [
{
target: 'false',
},
],
FALSE: [
{
target: 'false',
},
],
},
},
false: {
on: {
TOGGLE: [
{
target: 'true',
},
],
TRUE: [
{
target: 'true',
},
],
},
},
},
};