backport of commit ddd74c051a4f02a2ace43abd6e0617b8ea3c1192 (#18012)

This pull request was automerged via backport-assistant
This commit is contained in:
hc-github-team-nomad-core 2023-07-20 13:16:53 -05:00 committed by GitHub
parent 36163c36f8
commit 180ea2df9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 0 deletions

3
.changelog/17935.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:improvement
ui: added a button to copy variable path to clipboard
```

View File

@ -24,6 +24,10 @@
margin-right: 0.25rem;
}
}
.copy-button {
position: relative;
top: 3px;
}
}
.new-variables {

View File

@ -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)"