mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 05:45:46 +00:00
9d21736e9f
* Add copyright headers to UI files * Ensure copywrite file ignores external libs
63 lines
927 B
JavaScript
63 lines
927 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
export default {
|
|
id: 'data-writer',
|
|
initial: 'idle',
|
|
states: {
|
|
idle: {
|
|
on: {
|
|
PERSIST: {
|
|
target: 'persisting',
|
|
},
|
|
REMOVE: {
|
|
target: 'removing',
|
|
},
|
|
},
|
|
},
|
|
removing: {
|
|
on: {
|
|
SUCCESS: {
|
|
target: 'removed',
|
|
},
|
|
ERROR: {
|
|
target: 'error',
|
|
},
|
|
},
|
|
},
|
|
persisting: {
|
|
on: {
|
|
SUCCESS: {
|
|
target: 'persisted',
|
|
},
|
|
ERROR: {
|
|
target: 'error',
|
|
},
|
|
},
|
|
},
|
|
removed: {
|
|
on: {
|
|
RESET: {
|
|
target: 'idle',
|
|
},
|
|
},
|
|
},
|
|
persisted: {
|
|
on: {
|
|
RESET: {
|
|
target: 'idle',
|
|
},
|
|
},
|
|
},
|
|
error: {
|
|
on: {
|
|
RESET: {
|
|
target: 'idle',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|