This is an automated email from the ASF dual-hosted git repository.
dahn 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 9acba904237 Fix 404 when moving a VM to out of a project (#8650)
9acba904237 is described below
commit 9acba904237516d28ba370927de7cd2489d5d71f
Author: Fabricio Duarte <[email protected]>
AuthorDate: Fri Mar 15 13:00:56 2024 -0300
Fix 404 when moving a VM to out of a project (#8650)
---
ui/src/views/compute/AssignInstance.vue | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/ui/src/views/compute/AssignInstance.vue
b/ui/src/views/compute/AssignInstance.vue
index ed3efbc8338..9726dc21577 100644
--- a/ui/src/views/compute/AssignInstance.vue
+++ b/ui/src/views/compute/AssignInstance.vue
@@ -306,7 +306,11 @@ export default {
message: this.$t('label.loadbalancerinstance')
})
this.$emit('close-action')
- this.parentFetchData()
+ if (this.$store.getters.project?.id) {
+ this.$router.push({ path: '/vm' })
+ } else {
+ this.parentFetchData()
+ }
}).catch(error => {
this.$notifyError(error)
}).finally(() => {