mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-06-13 05:22:21 +00:00
feat: Prevent VM start after restore from backup or snapshot (#865)
* feat: Prevent VM start after restore from backup or snapshot Related to: https://github.com/harvester/harvester/issues/10422 Related to: https://github.com/harvester/harvester/pull/10480 Signed-off-by: Volker Theile <vtheile@suse.com> * feat: Prevent VM start after restore from backup or snapshot Related to: https://github.com/harvester/harvester/issues/10422 Related to: https://github.com/harvester/harvester/pull/10480 Signed-off-by: Volker Theile <vtheile@suse.com> --------- Signed-off-by: Volker Theile <vtheile@suse.com>
This commit is contained in:
parent
1446aac168
commit
e70c684382
@ -254,15 +254,24 @@ export default {
|
||||
v-if="restoreNewVm"
|
||||
v-model:value="restoreResource.spec.keepMacAddress"
|
||||
type="checkbox"
|
||||
class="check mb-20"
|
||||
:label="t('harvester.backup.restore.keepMacAddress')"
|
||||
/>
|
||||
|
||||
<LabeledSelect
|
||||
v-if="!restoreNewVm"
|
||||
v-model:value="deletionPolicy"
|
||||
class="mb-20"
|
||||
:label="t('harvester.backup.restore.deletePreviousVolumes')"
|
||||
:options="deletionPolicyOption"
|
||||
/>
|
||||
|
||||
<Checkbox
|
||||
v-model:value="restoreResource.spec.haltAfterRestore"
|
||||
type="checkbox"
|
||||
class="check mb-20"
|
||||
:label="t('harvester.backup.restore.haltAfterRestore')"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<Footer
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
import Footer from '@shell/components/form/Footer';
|
||||
import { RadioGroup } from '@components/Form/Radio';
|
||||
import { LabeledInput } from '@components/Form/LabeledInput';
|
||||
import Checkbox from '@components/Form/Checkbox/Checkbox';
|
||||
import LabeledSelect from '@shell/components/form/LabeledSelect';
|
||||
import CreateEditView from '@shell/mixins/create-edit-view';
|
||||
import { allHash } from '@shell/utils/promise';
|
||||
@ -32,6 +33,7 @@ const createObject = {
|
||||
export default {
|
||||
name: 'CreateRestore',
|
||||
components: {
|
||||
Checkbox,
|
||||
Footer,
|
||||
RadioGroup,
|
||||
LabeledInput,
|
||||
@ -249,9 +251,17 @@ export default {
|
||||
<LabeledSelect
|
||||
v-if="!restoreNewVm"
|
||||
v-model:value="deletionPolicy"
|
||||
class="mb-20"
|
||||
:label="t('harvester.backup.restore.deletePreviousVolumes')"
|
||||
:options="deletionPolicyOption"
|
||||
/>
|
||||
|
||||
<Checkbox
|
||||
v-model:value="restoreResource.spec.haltAfterRestore"
|
||||
type="checkbox"
|
||||
class="check mb-20"
|
||||
:label="t('harvester.backup.restore.haltAfterRestore')"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<Footer
|
||||
|
||||
@ -1118,6 +1118,7 @@ harvester:
|
||||
replaceExisting: Replace existing
|
||||
virtualMachineName: Virtual Machine Name
|
||||
keepMacAddress: Keep MAC Address
|
||||
haltAfterRestore: Keep powered off after restore
|
||||
matchTarget: The current backup target does not match the existing one.
|
||||
progress:
|
||||
details: Volume details
|
||||
@ -1522,6 +1523,7 @@ harvester:
|
||||
vmSnapshot:
|
||||
label: Virtual Machine Snapshots
|
||||
createText: Restore Snapshot
|
||||
title: Restore Virtual Machine
|
||||
snapshot: Snapshot
|
||||
|
||||
storage:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user