feat(xo-web/VM/Snapshots): notify the result of reverting a VM (#3150)

Fixes #3095
This commit is contained in:
badrAZ 2018-07-06 11:20:27 +02:00 committed by Pierre Donias
parent de76387c8f
commit cdc2ac2d9b
3 changed files with 9 additions and 1 deletions

View File

@ -10,6 +10,7 @@
- [Remotes] Allow optional port for NFS remote [2299](https://github.com/vatesfr/xen-orchestra/issues/2299) (PR [#3131](https://github.com/vatesfr/xen-orchestra/pull/3131))
- [Backup NG form] Add offline snapshot info (PR [#3144](https://github.com/vatesfr/xen-orchestra/pull/3144))
- [Backup NG overview] Display concurrency and offline snapshot value [3087](https://github.com/vatesfr/xen-orchestra/issues/3087) (PR [3145](https://github.com/vatesfr/xen-orchestra/pull/3145))
- [VM revert] notify the result of reverting a VM [3095](https://github.com/vatesfr/xen-orchestra/issues/3095) (PR [3150](https://github.com/vatesfr/xen-orchestra/pull/3150))
### Bug fixes

View File

@ -961,6 +961,8 @@ const messages = {
snapshotDescription: 'Description',
snapshotAction: 'Action',
snapshotQuiesce: 'Quiesced snapshot',
vmRevertSuccessfulTitle: 'Revert successful',
vmRevertSuccessfulMessage: 'VM successfully reverted',
// ----- VM log tab -----
logRemoveAll: 'Remove all logs',

View File

@ -1210,7 +1210,12 @@ export const revertSnapshot = snapshot =>
body: <RevertSnapshotModalBody />,
}).then(
snapshotBefore =>
_call('vm.revert', { snapshot: resolveId(snapshot), snapshotBefore }),
_call('vm.revert', {
snapshotBefore,
snapshot: resolveId(snapshot),
}).then(() =>
success(_('vmRevertSuccessfulTitle'), _('vmRevertSuccessfulMessage'))
),
noop
)