vault/ui/lib/ldap/addon/components/page/configuration.hbs
claire bontempo 4ac07e1d97
UI: HDS adoption replace <ConfirmAction> component (#21520)
* replace confirm-action dropdown with button+modal

* add modal frame to sidebar

* fix weird paragraph indent

* pass button text as arg

* add warning color to rotate modals

* update seal action and config ssh

* cleanup confirm action

* edit form

* add dropdown arg

* put back seal text

* put back confirm button text

* fix toolbar stylinggp

* popup member group

* move up title

* finish popup- components

* keymgmt

* fix modal button logic

* remaining app template components

* add period for angel

* vault cluster items

* add button text assertion

* remaining instances

* remove arg for passing confirm text

* contextual confirm action components

* delete old components

* update docs

* ammend dropdown loading states, add getter for confirm button color

* address feedback

* remove @disabled arg and add @disabledMessage

* add changelog;

* mfa tests

* update test selectors

* lol cleanup selectors

* start confirm action tests WIP

* move dropdown class directly to component

* add default color of isInDropdown

* final cleanup

* add tests

* remove @buttonColor as arg for dropdown

* update confirm action tests

* updae modals with disabled message

* refactor provider edit test
2023-11-17 23:44:21 +00:00

44 lines
1.5 KiB
Handlebars

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: BUSL-1.1
~}}
<TabPageHeader @model={{@backendModel}} @breadcrumbs={{@breadcrumbs}}>
<:toolbarActions>
{{#if @configModel}}
<ConfirmAction
@buttonText="Rotate root"
class="toolbar-button"
@buttonColor="secondary"
@onConfirmAction={{perform this.rotateRoot}}
@confirmTitle="Rotate root?"
@confirmMessage="After rotation, Vault will generate a new root password in your directory server."
@modalColor="warning"
@isRunning={{this.rotateRoot.isRunning}}
data-test-toolbar-rotate-action
/>
{{/if}}
<ToolbarLink @route="configure" data-test-toolbar-config-action>
{{if @configModel "Edit configuration" "Configure LDAP"}}
</ToolbarLink>
</:toolbarActions>
</TabPageHeader>
{{#if @configModel}}
{{#each this.defaultFields as |field|}}
<InfoTableRow @label={{field.label}} @value={{field.value}} @formatTtl={{field.formatTtl}} @alwaysRender={{true}} />
{{/each}}
<h2 class="title is-4 has-top-margin-xl">TLS Connection</h2>
<hr class="is-marginless" />
{{#each this.connectionFields as |field|}}
<InfoTableRow @label={{field.label}} @value={{field.value}} @alwaysRender={{true}} />
{{/each}}
{{else if @configError}}
<Page::Error @error={{@configError}} />
{{else}}
<ConfigCta />
{{/if}}
<SecretsEngineMountConfig @model={{@backendModel}} class="has-top-margin-xl has-bottom-margin-xl" data-test-mount-config />