open-vault/ui/app/machines/policies-machine.js
Hamid Ghaf 27bb03bbc0
adding copyright header (#19555)
* adding copyright header

* fix fmt and a test
2023-03-15 09:00:52 -07:00

48 lines
1.1 KiB
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
export default {
key: 'policies',
initial: 'idle',
states: {
idle: {
onEntry: [
{ type: 'routeTransition', params: ['vault.cluster.policies.index', 'acl'] },
{ type: 'render', level: 'feature', component: 'wizard/policies-intro' },
],
on: {
CONTINUE: 'create',
},
},
create: {
on: {
CONTINUE: 'details',
},
onEntry: [{ type: 'render', level: 'feature', component: 'wizard/policies-create' }],
},
details: {
on: {
CONTINUE: 'delete',
},
onEntry: [{ type: 'render', level: 'feature', component: 'wizard/policies-details' }],
},
delete: {
on: {
CONTINUE: 'others',
},
onEntry: [{ type: 'render', level: 'feature', component: 'wizard/policies-delete' }],
},
others: {
on: {
CONTINUE: 'complete',
},
onEntry: [{ type: 'render', level: 'feature', component: 'wizard/policies-others' }],
},
complete: {
onEntry: ['completeFeature'],
},
},
};