From 9f35b7ac36db42ca9f31f131ef909dc2a858fb9e Mon Sep 17 00:00:00 2001 From: Phil Renaud Date: Fri, 17 Mar 2023 15:12:39 -0400 Subject: [PATCH 1/2] Copyable server and client attribute values --- ui/app/components/copy-button.js | 3 ++- ui/app/components/metadata-kv.hbs | 5 +++++ ui/app/styles/components/copy-button.scss | 4 ++++ ui/app/styles/core/buttons.scss | 4 ++++ ui/app/templates/clients/client/index.hbs | 1 + .../components/attributes-section.hbs | 4 ++-- .../templates/components/attributes-table.hbs | 1 + ui/app/templates/components/copy-button.hbs | 22 +++++++++++++------ ui/app/templates/servers/server/index.hbs | 9 +++++++- 9 files changed, 42 insertions(+), 11 deletions(-) diff --git a/ui/app/components/copy-button.js b/ui/app/components/copy-button.js index 979ecd701d0..cf12ae24e2c 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 79ddc0ce44e..48fa9969208 100644 --- a/ui/app/components/metadata-kv.hbs +++ b/ui/app/components/metadata-kv.hbs @@ -51,6 +51,11 @@ {{~@key}} + {{@value}} {{#if @editable}}