mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-18 04:27:02 +02:00
* adds codemod for transforming button element to hds component * runs button codemod on kmip and kubernetes enginges * manully updates kuberenetes roles button * runs button codemod on ldap engine * manually updates remaining ldap buttons * updates button codemod to check if all child nodes were included in text arg construction * runs button codemod on kv engine * adds comment for future kv button update * Update ui/lib/kv/addon/components/page/secret/details.hbs Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com> * updates remaining instance of toolbar-link class on button and adds class name transform to button codemod * adds display inline override to hds button * updates hds button display override to inline-flex * updates ldap account check in button to tertiary * updates ldap library check out icon to tertiary and adds icon --------- Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
47 lines
1.5 KiB
Handlebars
47 lines
1.5 KiB
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
~}}
|
|
|
|
<TabPageHeader @model={{@backend}} @breadcrumbs={{@breadcrumbs}}>
|
|
<ToolbarLink @route="configure">Configure Kubernetes</ToolbarLink>
|
|
</TabPageHeader>
|
|
|
|
{{#if @promptConfig}}
|
|
<ConfigCta />
|
|
{{else}}
|
|
<div class="is-grid has-top-margin-l grid-2-columns grid-gap-2">
|
|
<OverviewCard
|
|
@cardTitle="Roles"
|
|
@subText="The number of Vault roles being used to generate Kubernetes credentials."
|
|
@actionText={{if @roles.length "View Roles" "Create Role"}}
|
|
@actionTo={{if @roles.length "roles" "roles.create"}}
|
|
>
|
|
<h2 class="title is-2 has-font-weight-normal has-top-margin-m" data-test-roles-card-overview-num>{{or
|
|
@roles.length
|
|
"None"
|
|
}}</h2>
|
|
</OverviewCard>
|
|
<OverviewCard @cardTitle="Generate credentials" @subText="Quickly generate credentials by typing the role name.">
|
|
<div class="has-top-margin-m is-flex">
|
|
<SearchSelect
|
|
class="is-flex-grow-1"
|
|
@placeholder="Type to find a role..."
|
|
@disallowNewItems={{true}}
|
|
@options={{this.roleOptions}}
|
|
@selectLimit="1"
|
|
@fallbackComponent="input-search"
|
|
@onChange={{this.selectRole}}
|
|
/>
|
|
<Hds::Button
|
|
@text="Generate"
|
|
@color="secondary"
|
|
class="has-left-margin-s"
|
|
disabled={{not this.selectedRole}}
|
|
{{on "click" this.generateCredential}}
|
|
data-test-generate-credential-button
|
|
/>
|
|
</div>
|
|
</OverviewCard>
|
|
</div>
|
|
{{/if}} |