mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 12:26:34 +02:00
* Copy https://github.com/hashicorp/vault/pull/31398 into main * replace transform edit page tooltip with hds tooltip --------- Co-authored-by: Evan Moncuso <emoncuso@hashicorp.com> Co-authored-by: Evan Moncuso <46458931+emoncuso@users.noreply.github.com> Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>
This commit is contained in:
parent
850fb48212
commit
a2f69d338c
@ -1,6 +1,6 @@
|
||||
{{!
|
||||
Copyright (c) HashiCorp, Inc.
|
||||
SPDX-License-Identifier: BUSL-1.1
|
||||
Copyright (c) HashiCorp, Inc.
|
||||
SPDX-License-Identifier: BUSL-1.1
|
||||
}}
|
||||
|
||||
<PageHeader as |p|>
|
||||
@ -32,22 +32,15 @@
|
||||
<ToolbarActions>
|
||||
{{#if this.model.updatePath.canDelete}}
|
||||
{{#if (gt this.model.allowed_roles.length 0)}}
|
||||
<ToolTip @verticalPosition="above" @horizontalPosition="center" as |T|>
|
||||
<T.Trigger @tabindex="-1">
|
||||
<Hds::Button
|
||||
@text="Delete transformation"
|
||||
@color="secondary"
|
||||
class="toolbar-button"
|
||||
aria-disabled="true"
|
||||
disabled
|
||||
/>
|
||||
</T.Trigger>
|
||||
<T.Content @defaultClass="tool-tip">
|
||||
<div class="box">
|
||||
This transformation is in use by a role and can’t be deleted.
|
||||
</div>
|
||||
</T.Content>
|
||||
</ToolTip>
|
||||
<Hds::TooltipButton @text="This transformation is in use by a role and can't be deleted.">
|
||||
<Hds::Button
|
||||
@text="Delete transformation"
|
||||
@color="secondary"
|
||||
class="toolbar-button"
|
||||
aria-disabled="true"
|
||||
disabled
|
||||
/>
|
||||
</Hds::TooltipButton>
|
||||
{{else}}
|
||||
<Hds::Button
|
||||
@text="Delete transformation"
|
||||
@ -109,7 +102,7 @@
|
||||
</M.Header>
|
||||
<M.Body>
|
||||
<p>
|
||||
You’re editing a transformation that is in use by at least one role. Editing it may mean that encode and decode
|
||||
You're editing a transformation that is in use by at least one role. Editing it may mean that encode and decode
|
||||
operations stop working. Are you sure?
|
||||
</p>
|
||||
</M.Body>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user