fix(xo-web/backup/overview): disable job cancellation (#4688)

Fixes #4657
This commit is contained in:
badrAZ 2020-01-30 10:48:03 +01:00 committed by GitHub
parent 04a562372b
commit 0bffbbfe65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 9 deletions

View File

@ -3,6 +3,10 @@
> Keep in mind the changelog is addressed to **users** and should be
> understandable by them.
### Dropped features
- [Backup / Overview] Job cancellation will be disabled until we find a way to make it work [#4657](https://github.com/vatesfr/xen-orchestra/issues/4657) (PR [#4688](https://github.com/vatesfr/xen-orchestra/pull/4688))
### Enhancements
> Users must be able to say: “Nice enhancement, I'm eager to test it”

View File

@ -47,6 +47,7 @@ const messages = {
vms: 'VMs',
metadata: 'Metadata',
chooseBackup: 'Choose a backup',
temporarilyDisabled: 'Temporarily disabled',
clickToShowError: 'Click to show error',
backupJobs: 'Backup jobs',
iscsiSessions:

View File

@ -148,15 +148,22 @@ const SchedulePreviewBody = decorate([
style={{ marginRight: '0.5em' }}
/>
{job.runId !== undefined ? (
<ActionButton
btnStyle='danger'
handler={cancelJob}
handlerParam={job}
icon='cancel'
key='cancel'
size='small'
tooltip={_('formCancel')}
/>
<Tooltip content={_('temporarilyDisabled')}>
<span>
<ActionButton
btnStyle='danger'
// 2020-01-29 Job cancellation will be disabled until we find a way to make it work.
// See https://github.com/vatesfr/xen-orchestra/issues/4657
disabled
handler={cancelJob}
handlerParam={job}
icon='cancel'
key='cancel'
size='small'
tooltip={_('formCancel')}
/>
</span>
</Tooltip>
) : (
<ActionButton
btnStyle='primary'