mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-03 20:40:45 -05:00
* fill guided start content * move namespace logic into page component * add page component tests for namespace wizard * add tree chart and changelog, update state management * fix failing page usage test * add back in breadcrumb update lost in merge conflict resolution across files * fix test * update terraform template function usage * Update ui/app/components/wizard/namespaces/step-3.hbs * formatting and fixes * revert usage page changes * move snippet generators into util and update code snippet initialization * update test namespace page args * move namespace wizard logic into its own component * fix nested namespace creation via api and cli code snippets * test update * nested namespace terraform snippet * remove outdated comment * test clean up and hide wizard in CE --------- Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com> Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
56 lines
No EOL
1.4 KiB
Handlebars
56 lines
No EOL
1.4 KiB
Handlebars
{{!
|
|
Copyright IBM Corp. 2016, 2025
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
}}
|
|
|
|
<Page::Header @title="Namespaces Guided Start" />
|
|
|
|
<div class="wizard" data-test-guided-setup>
|
|
<Hds::Stepper::Nav
|
|
class="has-top-margin-xl has-bottom-margin-xl is-flex-column is-flex-grow-1"
|
|
@isInteractive={{true}}
|
|
@onStepChange={{this.onNavStepChange}}
|
|
@currentStep={{@currentStep}}
|
|
@steps={{@steps}}
|
|
as |S|
|
|
>
|
|
{{#each @steps as |step|}}
|
|
<S.Step>
|
|
<:title>{{step.title}}</:title>
|
|
</S.Step>
|
|
|
|
<S.Panel class="content" data-test-content>
|
|
{{#let (component step.component) as |StepComponent|}}
|
|
<StepComponent @wizardState={{@wizardState}} @updateWizardState={{@updateWizardState}} />
|
|
{{/let}}
|
|
</S.Panel>
|
|
{{/each}}
|
|
</Hds::Stepper::Nav>
|
|
|
|
<div class="button-bar">
|
|
{{#if (gt @currentStep 0)}}
|
|
<Hds::Button
|
|
@text="Back"
|
|
@color="tertiary"
|
|
@icon="chevron-left"
|
|
{{on "click" (fn this.onStepChange -1)}}
|
|
data-test-back-button
|
|
/>
|
|
{{/if}}
|
|
|
|
<Hds::ButtonSet>
|
|
{{yield to="exit"}}
|
|
{{#if this.isFinalStep}}
|
|
{{yield to="submit"}}
|
|
{{else}}
|
|
<Hds::Button
|
|
@text="Next"
|
|
disabled={{not @canProceed}}
|
|
{{on "click" (fn this.onStepChange 1)}}
|
|
data-test-button="Next"
|
|
/>
|
|
{{/if}}
|
|
</Hds::ButtonSet>
|
|
</div>
|
|
|
|
</div> |