mirror of https://github.com/apache/cloudstack.git
UI: Fixes asynchronous when destroying wrong item VM (#5884)
* fix asynchronous error when deleting VMs one by one * fixes error open modal
This commit is contained in:
parent
28f6067f3c
commit
065847e6af
|
|
@ -913,8 +913,10 @@ export default {
|
|||
}
|
||||
}
|
||||
if (this.items.length > 0) {
|
||||
this.resource = this.items[0]
|
||||
this.$emit('change-resource', this.resource)
|
||||
if (!this.showAction) {
|
||||
this.resource = this.items[0]
|
||||
this.$emit('change-resource', this.resource)
|
||||
}
|
||||
} else {
|
||||
if (this.dataView) {
|
||||
this.$router.push({ path: '/exception/404' })
|
||||
|
|
|
|||
Loading…
Reference in New Issue