2023-03-15 16:00:52 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/
|
|
|
|
|
2018-08-28 05:03:55 +00:00
|
|
|
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'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|