mirror of https://github.com/status-im/consul.git
35 lines
469 B
JavaScript
35 lines
469 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
export default {
|
|
id: 'copy-button',
|
|
initial: 'idle',
|
|
on: {
|
|
RESET: [
|
|
{
|
|
target: 'idle',
|
|
},
|
|
],
|
|
},
|
|
states: {
|
|
idle: {
|
|
on: {
|
|
SUCCESS: [
|
|
{
|
|
target: 'success',
|
|
},
|
|
],
|
|
ERROR: [
|
|
{
|
|
target: 'error',
|
|
},
|
|
],
|
|
},
|
|
},
|
|
success: {},
|
|
error: {},
|
|
},
|
|
};
|