open-vault/ui/app/components/wizard/secrets-keymgmt.js
Jordan Reimer 9eaea7bc14
KMSE Wizard Steps (#15171)
* fixes issues in key-edit component

* adds capabilities checks for keys and providers

* adds distribute component to key and provider edit

* adds wizard steps for kmse
2022-04-26 13:17:42 -06:00

28 lines
944 B
JavaScript

import Component from '@glimmer/component';
export default class WizardSecretsKeymgmtComponent extends Component {
get headerText() {
return {
provider: 'Creating a provider',
displayProvider: 'Distributing a key',
distribute: 'Creating a key',
}[this.args.featureState];
}
get body() {
return {
provider: 'This process connects an external provider to Vault. You will need its credentials.',
displayProvider: 'A key can now be created and distributed to this destination.',
distribute: 'This process creates a key and distributes it to your provider.',
}[this.args.featureState];
}
get instructions() {
return {
provider: 'Enter your provider details and click “Create provider“.',
displayProvider: 'Click “Distribute key” in the toolbar.',
distribute: 'Enter your key details and click “Distribute key”.',
}[this.args.featureState];
}
}