Skip to content

Commit

Permalink
Copy button added to variables title (#17935)
Browse files Browse the repository at this point in the history
  • Loading branch information
philrenaud authored and jrasell committed Jul 26, 2023
1 parent 49b36e3 commit 28d499a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/17935.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
ui: added a button to copy variable path to clipboard
```
4 changes: 4 additions & 0 deletions ui/app/styles/components/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
margin-right: 0.25rem;
}
}
.copy-button {
position: relative;
top: 3px;
}
}

.new-variables {
Expand Down
6 changes: 6 additions & 0 deletions ui/app/templates/variables/variable/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
<div>
<FlightIcon @name="file-text" />
{{this.model.path}}
<CopyButton
@inset={{true}}
@compact={{true}}
@clipboardText={{this.model.path}}
/>

<Toggle
{{keyboard-shortcut
label="Toggle View (JSON/List)"
Expand Down

0 comments on commit 28d499a

Please sign in to comment.