feat(xo-web/jobs): add button to copy jobs IDs (#5951)
Useful to create a `job.runSequence` job. Follow-up of #5944.
This commit is contained in:
parent
e2e453985f
commit
9ceba1d6e8
@ -8,6 +8,7 @@
|
|||||||
> Users must be able to say: “Nice enhancement, I'm eager to test it”
|
> Users must be able to say: “Nice enhancement, I'm eager to test it”
|
||||||
|
|
||||||
- [Tasks] Filter out short tasks using a default filter (PR [#5921](https://github.com/vatesfr/xen-orchestra/pull/5921))
|
- [Tasks] Filter out short tasks using a default filter (PR [#5921](https://github.com/vatesfr/xen-orchestra/pull/5921))
|
||||||
|
- [Jobs] Ability to copy a job ID (PR [#5951](https://github.com/vatesfr/xen-orchestra/pull/5951))
|
||||||
|
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@ import _, { messages } from 'intl'
|
|||||||
import ActionButton from 'action-button'
|
import ActionButton from 'action-button'
|
||||||
import Button from 'button'
|
import Button from 'button'
|
||||||
import Component from 'base-component'
|
import Component from 'base-component'
|
||||||
|
import copy from 'copy-to-clipboard'
|
||||||
import defined from '@xen-orchestra/defined'
|
import defined from '@xen-orchestra/defined'
|
||||||
import GenericInput from 'json-schema-input'
|
import GenericInput from 'json-schema-input'
|
||||||
import Icon from 'icon'
|
import Icon from 'icon'
|
||||||
@ -408,6 +409,12 @@ export default class Jobs extends Component {
|
|||||||
label: _('jobEdit'),
|
label: _('jobEdit'),
|
||||||
level: 'primary',
|
level: 'primary',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
handler: ({ id }) => copy(id),
|
||||||
|
icon: 'clipboard',
|
||||||
|
label: _('copyToClipboard'),
|
||||||
|
level: 'secondary',
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
Loading…
Reference in New Issue
Block a user