mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
UI: Add the wizard to the database secret engine (#10982)
* wizard setup * cleanup * add changelog * fix names from save to create role and create database * fix missing progress bar
This commit is contained in:
@@ -19,6 +19,7 @@ export default class DatabaseConnectionEdit extends Component {
|
||||
@service store;
|
||||
@service router;
|
||||
@service flashMessages;
|
||||
@service wizard;
|
||||
|
||||
@tracked
|
||||
showPasswordField = false; // used for edit mode
|
||||
@@ -26,6 +27,13 @@ export default class DatabaseConnectionEdit extends Component {
|
||||
@tracked
|
||||
showSaveModal = false; // used for create mode
|
||||
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
if (this.wizard.featureState === 'details' || this.wizard.featureState === 'connection') {
|
||||
this.wizard.transitionFeatureMachine(this.wizard.featureState, 'CONTINUE', 'database');
|
||||
}
|
||||
}
|
||||
|
||||
rotateCredentials(backend, name) {
|
||||
let adapter = this.store.adapterFor('database/connection');
|
||||
return adapter.rotateRootCredentials(backend, name);
|
||||
|
||||
Reference in New Issue
Block a user