feat(vmsnapshot): add snapshot export and copy. Fixes #1353 and #1336

This commit is contained in:
Olivier Lambert
2016-08-08 14:05:27 +02:00
parent 7dc59a00f6
commit 67df22a1bf
2 changed files with 20 additions and 0 deletions

View File

@@ -513,6 +513,8 @@ var messages = {
tipCreateSnapshotLabel: 'Just click on the snapshot button to create one!',
revertSnapshot: 'Revert VM to this snapshot',
deleteSnapshot: 'Remove this snapshot',
copySnapshot: 'Create a VM from this snapshot',
exportSnapshot: 'Export this snapshot',
snapshotDate: 'Creation date',
snapshotName: 'Name',
snapshotAction: 'Action',

View File

@@ -15,7 +15,9 @@ import {
createGetObjectsOfType
} from 'selectors'
import {
copyVm,
deleteVm,
exportVm,
editVm,
revertSnapshot,
snapshotVm
@@ -72,6 +74,22 @@ export default class TabSnapshot extends Component {
</td>
<td>
<ButtonGroup>
<Tooltip content={_('copySnapshot')}>
<ActionRowButton
btnStyle='primary'
handler={copyVm}
handlerParam={snapshot}
icon='vm-copy'
/>
</Tooltip>
<Tooltip content={_('exportSnapshot')}>
<ActionRowButton
btnStyle='primary'
handler={exportVm}
handlerParam={snapshot}
icon='vm-export'
/>
</Tooltip>
<Tooltip content={_('revertSnapshot')}>
<ActionRowButton
btnStyle='warning'