open-vault/ui/app/machines/tools-machine.js
madalynrose 3ff2ba463a
Wizard tests (#5328)
add integration tests for the ui tutorial
2018-10-12 14:49:06 -04:00

61 lines
1.5 KiB
JavaScript

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'],
},
},
};