diff --git a/.changelog/16548.txt b/.changelog/16548.txt
new file mode 100644
index 000000000..ffdb8f5e0
--- /dev/null
+++ b/.changelog/16548.txt
@@ -0,0 +1,3 @@
+```release-note:improvement
+ui: Added copy-to-clipboard buttons to server and client pages
+```
diff --git a/ui/app/components/copy-button.js b/ui/app/components/copy-button.js
index 979ecd701..cf12ae24e 100644
--- a/ui/app/components/copy-button.js
+++ b/ui/app/components/copy-button.js
@@ -1,10 +1,11 @@
import Component from '@ember/component';
import { task, timeout } from 'ember-concurrency';
-import { classNames } from '@ember-decorators/component';
+import { classNames, classNameBindings } from '@ember-decorators/component';
import classic from 'ember-classic-decorator';
@classic
@classNames('copy-button')
+@classNameBindings('inset')
export default class CopyButton extends Component {
clipboardText = null;
state = null;
diff --git a/ui/app/components/metadata-kv.hbs b/ui/app/components/metadata-kv.hbs
index 79ddc0ce4..48fa99692 100644
--- a/ui/app/components/metadata-kv.hbs
+++ b/ui/app/components/metadata-kv.hbs
@@ -51,6 +51,11 @@
{{~@key}}
+
{{@value}}
{{#if @editable}}
diff --git a/ui/app/templates/components/attributes-section.hbs b/ui/app/templates/components/attributes-section.hbs
index bed9dd8be..8908abca6 100644
--- a/ui/app/templates/components/attributes-section.hbs
+++ b/ui/app/templates/components/attributes-section.hbs
@@ -6,9 +6,9 @@
|
+ @key={{key}} @value={{value}} @editable={{@editable}} @onKVSave={{@onKVSave}} @copyable={{@copyable}} />
{{else}}
+ @key={{key}} @value={{value}} @editable={{@editable}} @onKVSave={{@onKVSave}} @copyable={{@copyable}} />
{{/if}}
{{/each-in}}
diff --git a/ui/app/templates/components/attributes-table.hbs b/ui/app/templates/components/attributes-table.hbs
index 8be2385df..6a589aa67 100644
--- a/ui/app/templates/components/attributes-table.hbs
+++ b/ui/app/templates/components/attributes-table.hbs
@@ -10,6 +10,7 @@
@editable={{@editable}}
@onKVEdit={{@onKVEdit}}
@onKVSave={{@onKVSave}}
+ @copyable={{@copyable}}
/>
diff --git a/ui/app/templates/components/copy-button.hbs b/ui/app/templates/components/copy-button.hbs
index 61e6f86de..616fbbd4a 100644
--- a/ui/app/templates/components/copy-button.hbs
+++ b/ui/app/templates/components/copy-button.hbs
@@ -1,20 +1,28 @@
{{#if (eq this.state 'success')}}
-
- {{x-icon 'copy-success'}}
-
+ {{#if @inset}}
+ {{x-icon 'copy-success'}}
+ {{else}}
+
+ {{x-icon 'copy-success'}}
+
+ {{/if}}
{{yield}}
{{else if (eq this.state 'error')}}
-
- {{x-icon 'alert-triangle'}}
-
+ {{#if @inset}}
+ {{x-icon 'alert-triangle'}}
+ {{else}}
+
+ {{x-icon 'alert-triangle'}}
+
+ {{/if}}
{{yield}}
{{else}}
{{row.model.name}} |
- {{row.model.value}} |
+
+
+ {{row.model.value}}
+ |