feat(xo-web/vm): move the copy clipboard of the VM's UUID to the header (#3248)
Fixes #3221
This commit is contained in:
parent
cdc43a6cde
commit
c7c205d52f
@ -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))
|
- [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))
|
- [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
|
### Bug fixes
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import _ from 'intl'
|
import _ from 'intl'
|
||||||
import BaseComponent from 'base-component'
|
import BaseComponent from 'base-component'
|
||||||
|
import Copiable from 'copiable'
|
||||||
import Icon from 'icon'
|
import Icon from 'icon'
|
||||||
import Link from 'link'
|
import Link from 'link'
|
||||||
import { NavLink, NavTabs } from 'nav'
|
import { NavLink, NavTabs } from 'nav'
|
||||||
@ -175,14 +176,17 @@ export default class Vm extends BaseComponent {
|
|||||||
<Container>
|
<Container>
|
||||||
<Row>
|
<Row>
|
||||||
<Col mediumSize={6} className='header-title'>
|
<Col mediumSize={6} className='header-title'>
|
||||||
<h2>
|
<Copiable tagName='div'>
|
||||||
{isEmpty(vm.current_operations) ? (
|
<h2 style={{ display: 'inline' }}>
|
||||||
<Icon icon={`vm-${vm.power_state.toLowerCase()}`} />
|
{isEmpty(vm.current_operations) ? (
|
||||||
) : (
|
<Icon icon={`vm-${vm.power_state.toLowerCase()}`} />
|
||||||
<Icon icon='vm-busy' />
|
) : (
|
||||||
)}{' '}
|
<Icon icon='vm-busy' />
|
||||||
<Text value={vm.name_label} onChange={this._setNameLabel} />
|
)}{' '}
|
||||||
</h2>
|
<Text value={vm.name_label} onChange={this._setNameLabel} />
|
||||||
|
</h2>{' '}
|
||||||
|
(<strong>{_('uuid')}</strong>: {vm.uuid})
|
||||||
|
</Copiable>
|
||||||
<span>
|
<span>
|
||||||
<Text
|
<Text
|
||||||
value={vm.name_description}
|
value={vm.name_description}
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import _ from 'intl'
|
import _ from 'intl'
|
||||||
import ActionButton from 'action-button'
|
import ActionButton from 'action-button'
|
||||||
import Component from 'base-component'
|
import Component from 'base-component'
|
||||||
import Copiable from 'copiable'
|
|
||||||
import defined from 'xo-defined'
|
import defined from 'xo-defined'
|
||||||
import getEventValue from 'get-event-value'
|
import getEventValue from 'get-event-value'
|
||||||
import Icon from 'icon'
|
import Icon from 'icon'
|
||||||
@ -385,10 +384,6 @@ export default class TabAdvanced extends Component {
|
|||||||
<h3>{_('xenSettingsLabel')}</h3>
|
<h3>{_('xenSettingsLabel')}</h3>
|
||||||
<table className='table'>
|
<table className='table'>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
|
||||||
<th>{_('uuid')}</th>
|
|
||||||
<Copiable tagName='td'>{vm.uuid}</Copiable>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>{_('virtualizationMode')}</th>
|
<th>{_('virtualizationMode')}</th>
|
||||||
<td>
|
<td>
|
||||||
|
Loading…
Reference in New Issue
Block a user