Copy button added to variables title (#17935)

This commit is contained in:
Phil Renaud
2023-07-20 14:16:33 -04:00
committed by GitHub
parent 6bed12f693
commit 94112d8cfd
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)"