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; margin-right: 0.25rem;
} }
} }
.copy-button {
position: relative;
top: 3px;
}
} }
.new-variables { .new-variables {

View File

@ -7,6 +7,12 @@
<div> <div>
<FlightIcon @name="file-text" /> <FlightIcon @name="file-text" />
{{this.model.path}} {{this.model.path}}
<CopyButton
@inset={{true}}
@compact={{true}}
@clipboardText={{this.model.path}}
/>
<Toggle <Toggle
{{keyboard-shortcut {{keyboard-shortcut
label="Toggle View (JSON/List)" label="Toggle View (JSON/List)"