mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 12:26:34 +02:00
* update styles and casing * fix check for default secret engines * show content behind intro modal * revert header changes * update alert and test * add test coverage and update flash message * update doc link style class and update test * update tests * update test to avoid state mismatches * update test Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>
65 lines
2.0 KiB
Handlebars
65 lines
2.0 KiB
Handlebars
{{!
|
|
Copyright IBM Corp. 2016, 2025
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
}}
|
|
|
|
<Wizard
|
|
@wizardId={{this.wizardId}}
|
|
@canProceed={{this.canProceed}}
|
|
@currentStep={{this.currentStep}}
|
|
@isModal={{@isIntroModal}}
|
|
@steps={{this.steps}}
|
|
@title="Namespaces"
|
|
@wizardState={{this.wizardState}}
|
|
@updateWizardState={{this.updateWizardState}}
|
|
@onDismiss={{this.onDismiss}}
|
|
@onStepChange={{this.onStepChange}}
|
|
>
|
|
<:intro>
|
|
<Wizard::Namespaces::Intro />
|
|
</:intro>
|
|
<:introActions>
|
|
<Hds::ButtonSet>
|
|
<Hds::Button
|
|
@icon="rocket"
|
|
@text="Guided start"
|
|
{{on "click" (fn this.onIntroChange false)}}
|
|
data-test-button="Guided start"
|
|
/>
|
|
<Hds::Button
|
|
@color="secondary"
|
|
@text={{if @isIntroModal "Close" "Skip"}}
|
|
{{on "click" this.onDismiss}}
|
|
data-test-button="Skip"
|
|
/>
|
|
<Hds::Link::Standalone
|
|
@icon="docs-link"
|
|
@iconPosition="trailing"
|
|
@text="View documentation"
|
|
@href={{doc-link "/vault/docs/enterprise/namespaces"}}
|
|
class="margin-left-auto"
|
|
/>
|
|
</Hds::ButtonSet>
|
|
</:introActions>
|
|
{{! The yielded blocks below are used in the Guided Start }}
|
|
<:exit>
|
|
{{#if this.shouldShowExitButton}}
|
|
<Hds::Button @text={{this.exitText}} @color="secondary" {{on "click" this.onDismiss}} data-test-button="Exit" />
|
|
{{/if}}
|
|
</:exit>
|
|
<:submit>
|
|
{{#if (eq this.wizardState.securityPolicyChoice this.policy.FLEXIBLE)}}
|
|
<Hds::Button @text="Done" {{on "click" this.onDone}} data-test-button="Done" />
|
|
{{else if (eq this.wizardState.creationMethod this.methods.UI)}}
|
|
<Hds::Button @text="Apply in UI" {{on "click" this.onSubmit}} data-test-button="Apply" />
|
|
{{else}}
|
|
<Hds::Copy::Button
|
|
@text="Copy code"
|
|
@textToCopy={{this.wizardState.codeSnippet}}
|
|
@onError={{(fn (set-flash-message "Clipboard copy failed. The Clipboard API requires a secure context." "danger"))}}
|
|
class="primary"
|
|
data-test-copy-button
|
|
/>
|
|
{{/if}}
|
|
</:submit>
|
|
</Wizard> |