From c7c205d52fa3cc5464b1278dc632901755c6859f Mon Sep 17 00:00:00 2001 From: badrAZ Date: Tue, 7 Aug 2018 14:17:47 +0200 Subject: [PATCH] feat(xo-web/vm): move the copy clipboard of the VM's UUID to the header (#3248) Fixes #3221 --- CHANGELOG.md | 1 + packages/xo-web/src/xo-app/vm/index.js | 20 +++++++++++-------- packages/xo-web/src/xo-app/vm/tab-advanced.js | 5 ----- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fbe07fcf..21b9e3795 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - [Remotes] Make SMB subfolder field optional [#3249](https://github.com/vatesfr/xen-orchestra/issues/3249) (PR [#3250](https://github.com/vatesfr/xen-orchestra/pull/3250)) - [Backup NG form] Make the smart mode's toggle more visible [#2711](https://github.com/vatesfr/xen-orchestra/issues/2711) (PR [#3263](https://github.com/vatesfr/xen-orchestra/pull/3263)) +- Move the copy clipboard of the VM's UUID to the header [#3221](https://github.com/vatesfr/xen-orchestra/issues/3221) (PR [#3248](https://github.com/vatesfr/xen-orchestra/pull/3248)) ### Bug fixes diff --git a/packages/xo-web/src/xo-app/vm/index.js b/packages/xo-web/src/xo-app/vm/index.js index 543f24cf6..cef536dde 100644 --- a/packages/xo-web/src/xo-app/vm/index.js +++ b/packages/xo-web/src/xo-app/vm/index.js @@ -1,5 +1,6 @@ import _ from 'intl' import BaseComponent from 'base-component' +import Copiable from 'copiable' import Icon from 'icon' import Link from 'link' import { NavLink, NavTabs } from 'nav' @@ -175,14 +176,17 @@ export default class Vm extends BaseComponent { -

- {isEmpty(vm.current_operations) ? ( - - ) : ( - - )}{' '} - -

+ +

+ {isEmpty(vm.current_operations) ? ( + + ) : ( + + )}{' '} + +

{' '} + ({_('uuid')}: {vm.uuid}) +
{_('xenSettingsLabel')} - - - {vm.uuid} -
{_('uuid')}
{_('virtualizationMode')}