open-vault/ui/app/machines/tools-machine.js

62 lines
1.5 KiB
JavaScript
Raw Normal View History

2018-08-28 05:03:55 +00:00
export default {
key: 'tools',
initial: 'wrap',
states: {
wrap: {
onEntry: [
{ type: 'routeTransition', params: ['vault.cluster.tools'] },
{ type: 'render', level: 'feature', component: 'wizard/tools-wrap' },
],
on: {
CONTINUE: 'wrapped',
},
},
wrapped: {
onEntry: [{ type: 'render', level: 'feature', component: 'wizard/tools-wrapped' }],
on: {
LOOKUP: 'lookup',
},
},
lookup: {
onEntry: [{ type: 'render', level: 'feature', component: 'wizard/tools-lookup' }],
on: {
CONTINUE: 'info',
},
},
info: {
onEntry: [{ type: 'render', level: 'feature', component: 'wizard/tools-info' }],
on: {
REWRAP: 'rewrap',
},
},
rewrap: {
onEntry: [{ type: 'render', level: 'feature', component: 'wizard/tools-rewrap' }],
on: {
CONTINUE: 'rewrapped',
},
},
rewrapped: {
onEntry: [{ type: 'render', level: 'feature', component: 'wizard/tools-rewrapped' }],
on: {
UNWRAP: 'unwrap',
},
},
unwrap: {
onEntry: [{ type: 'render', level: 'feature', component: 'wizard/tools-unwrap' }],
on: {
CONTINUE: 'unwrapped',
},
},
unwrapped: {
onEntry: [{ type: 'render', level: 'feature', component: 'wizard/tools-unwrapped' }],
on: {
CONTINUE: 'complete',
},
},
complete: {
onEntry: ['completeFeature'],
on: { RESET: 'idle' },
},
},
};