Skip to content

Commit a312a1e

Browse files
committed
replace transform edit page tooltip with hds tooltip
1 parent 970975c commit a312a1e

File tree

1 file changed

+12
-19
lines changed

1 file changed

+12
-19
lines changed

ui/app/components/transformation-edit.hbs

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{!
2-
Copyright (c) HashiCorp, Inc.
3-
SPDX-License-Identifier: BUSL-1.1
2+
Copyright (c) HashiCorp, Inc.
3+
SPDX-License-Identifier: BUSL-1.1
44
}}
55

66
<PageHeader as |p|>
@@ -32,22 +32,15 @@
3232
<ToolbarActions>
3333
{{#if this.model.updatePath.canDelete}}
3434
{{#if (gt this.model.allowed_roles.length 0)}}
35-
<ToolTip @verticalPosition="above" @horizontalPosition="center" as |T|>
36-
<T.Trigger @tabindex="-1">
37-
<Hds::Button
38-
@text="Delete transformation"
39-
@color="secondary"
40-
class="toolbar-button"
41-
aria-disabled="true"
42-
disabled
43-
/>
44-
</T.Trigger>
45-
<T.Content @defaultClass="tool-tip">
46-
<div class="box">
47-
This transformation is in use by a role and can’t be deleted.
48-
</div>
49-
</T.Content>
50-
</ToolTip>
35+
<Hds::TooltipButton @text="This transformation is in use by a role and can't be deleted.">
36+
<Hds::Button
37+
@text="Delete transformation"
38+
@color="secondary"
39+
class="toolbar-button"
40+
aria-disabled="true"
41+
disabled
42+
/>
43+
</Hds::TooltipButton>
5144
{{else}}
5245
<Hds::Button
5346
@text="Delete transformation"
@@ -109,7 +102,7 @@
109102
</M.Header>
110103
<M.Body>
111104
<p>
112-
Youre editing a transformation that is in use by at least one role. Editing it may mean that encode and decode
105+
You're editing a transformation that is in use by at least one role. Editing it may mean that encode and decode
113106
operations stop working. Are you sure?
114107
</p>
115108
</M.Body>

0 commit comments

Comments
 (0)