Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.4k
UI improvements #9773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
UI improvements #9773
Changes from all commits
eccb2e3fb46785c087de40a097c40d024c3f53092ea79b603d6181d5e66680088ad0048fdfbddc2174f4e0fe1c790f8300b6ae5fadf6672d5224243cd1fa9e320b7f0e289502e3991bff97321c0acaa77019b8dd4d198ee79203b61086c42a352c475b9df202d936d94f5edd50488e17d0f044ff694d2f2919d53416e78d8d79c4c92a8896dc850575957396e6ec31afeb4791eac913d8b362f07dd5a594112a1e020be6c8bc6bf4736fce90cfa879c221a9e92d8c3e27ab123145e7ab2f72e5b2ffca62e7ffd8c92a3dcd475df60a7a8cdf6442663c59c122File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -165,9 +165,10 @@ export default { | ||
| label: 'label.action.take.snapshot', | ||
| dataView: true, | ||
| show: (record, store) => { | ||
| return record.state === 'Ready' && (record.hypervisor !== 'KVM' || | ||
| record.hypervisor === 'KVM' && record.vmstate === 'Running' && store.features.kvmsnapshotenabled || | ||
| record.hypervisor === 'KVM' && record.vmstate !== 'Running') | ||
| return record.state === 'Ready' && | ||
| (record.hypervisor !== 'KVM' || | ||
| ['Stopped', 'Destroyed'].includes(record.vmstate) || | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here, why destroyed state ? ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Before this change, the button would be shown for all states part from 'Running'. | ||
| store.features.kvmsnapshotenabled) | ||
| }, | ||
| popup: true, | ||
| component: shallowRef(defineAsyncComponent(() => import('@/views/storage/TakeSnapshot.vue'))) | ||
| @@ -179,9 +180,10 @@ export default { | ||
| label: 'label.action.recurring.snapshot', | ||
| dataView: true, | ||
| show: (record, store) => { | ||
| return record.state === 'Ready' && (record.hypervisor !== 'KVM' || | ||
| record.hypervisor === 'KVM' && record.vmstate === 'Running' && store.features.kvmsnapshotenabled || | ||
| record.hypervisor === 'KVM' && record.vmstate !== 'Running') | ||
| return record.state === 'Ready' && | ||
| (record.hypervisor !== 'KVM' || | ||
| (['Stopped', 'Destroyed'].includes(record.vmstate)) || | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same doubt as above ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above | ||
| (store.features.kvmsnapshotenabled)) | ||
| }, | ||
| popup: true, | ||
| component: shallowRef(defineAsyncComponent(() => import('@/views/storage/RecurringSnapshotVolume.vue'))), | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why destroyed state?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to keep the UI conditions same as the service layer. Please see hostSupportsSnapsthotForVolume().
But I'm ok if we don't want to allow snapshot creation from UI for destroyed VMs.