Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 12 additions & 19 deletions ui/app/components/transformation-edit.hbs
Original file line number Diff line number Diff line change
@@ -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|>
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -109,7 +102,7 @@
</M.Header>
<M.Body>
<p>
Youre 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>
Expand Down
Loading