mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
views: on delete don't refresh same view, go back in history
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
08d37a4cd7
commit
c023db99f0
@ -404,6 +404,10 @@ export default {
|
||||
closeAction () {
|
||||
this.currentAction.loading = false
|
||||
this.showAction = false
|
||||
if (this.currentAction.icon === 'delete') {
|
||||
this.currentAction = {}
|
||||
this.$router.go(-1)
|
||||
}
|
||||
this.currentAction = {}
|
||||
},
|
||||
execAction (action) {
|
||||
|
||||
@ -28,6 +28,9 @@
|
||||
<a-tag v-if="resource.type">
|
||||
{{ resource.type }}
|
||||
</a-tag>
|
||||
<a-tag v-if="resource.broadcasturi">
|
||||
{{ resource.broadcasturi }}
|
||||
</a-tag>
|
||||
<a-tag v-if="resource.hypervisor">
|
||||
{{ resource.hypervisor }}
|
||||
</a-tag>
|
||||
@ -158,7 +161,7 @@
|
||||
<span v-else>{{ resource.ipaddress }}</span>
|
||||
</div>
|
||||
<div class="resource-detail-item" v-if="resource.virtualmachineid">
|
||||
<a-icon type="laptop" class="resource-detail-item"/>
|
||||
<a-icon type="desktop" class="resource-detail-item"/>
|
||||
<router-link :to="{ path: '/vm/' + resource.virtualmachineid }">{{ resource.vmname || resource.vm || resource.virtualmachinename || resource.virtualmachineid }} </router-link>
|
||||
<status style="margin-top: -5px" :text="resource.vmstate" v-if="resource.vmstate"/>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user