This is an automated email from the ASF dual-hosted git repository.

sureshanaparti pushed a commit to branch 4.19
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.19 by this push:
     new 6c6023b790c UI: Fix irrelevant conversion options in import instance 
modal (#8838)
6c6023b790c is described below

commit 6c6023b790c87f1b37f78bfacaababe202ef93bf
Author: Vishesh <[email protected]>
AuthorDate: Wed Mar 27 18:37:00 2024 +0530

    UI: Fix irrelevant conversion options in import instance modal (#8838)
---
 ui/src/views/tools/ImportUnmanagedInstance.vue | 2 +-
 ui/src/views/tools/ManageInstances.vue         | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/ui/src/views/tools/ImportUnmanagedInstance.vue 
b/ui/src/views/tools/ImportUnmanagedInstance.vue
index a03ef3866ec..9eb74877365 100644
--- a/ui/src/views/tools/ImportUnmanagedInstance.vue
+++ b/ui/src/views/tools/ImportUnmanagedInstance.vue
@@ -713,7 +713,7 @@ export default {
         page: 1
       })
       this.fetchKvmHostsForConversion()
-      if (this.resource.disk.length > 1) {
+      if (this.resource?.disk?.length > 1) {
         this.updateSelectedRootDisk()
       }
     },
diff --git a/ui/src/views/tools/ManageInstances.vue 
b/ui/src/views/tools/ManageInstances.vue
index a869768bf39..b61c8a9efa5 100644
--- a/ui/src/views/tools/ManageInstances.vue
+++ b/ui/src/views/tools/ManageInstances.vue
@@ -1074,6 +1074,7 @@ export default {
       this.sourceHypervisor = value
       this.sourceActions = this.AllSourceActions.filter(x => 
x.sourceDestHypervisors[value])
       this.form.sourceAction = this.sourceActions[0].name || ''
+      this.selectedVmwareVcenter = undefined
       this.onSelectSourceAction(this.form.sourceAction)
     },
     onSelectSourceAction (value) {

Reply via email to