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 () {
|
closeAction () {
|
||||||
this.currentAction.loading = false
|
this.currentAction.loading = false
|
||||||
this.showAction = false
|
this.showAction = false
|
||||||
|
if (this.currentAction.icon === 'delete') {
|
||||||
|
this.currentAction = {}
|
||||||
|
this.$router.go(-1)
|
||||||
|
}
|
||||||
this.currentAction = {}
|
this.currentAction = {}
|
||||||
},
|
},
|
||||||
execAction (action) {
|
execAction (action) {
|
||||||
|
|||||||
@ -28,6 +28,9 @@
|
|||||||
<a-tag v-if="resource.type">
|
<a-tag v-if="resource.type">
|
||||||
{{ resource.type }}
|
{{ resource.type }}
|
||||||
</a-tag>
|
</a-tag>
|
||||||
|
<a-tag v-if="resource.broadcasturi">
|
||||||
|
{{ resource.broadcasturi }}
|
||||||
|
</a-tag>
|
||||||
<a-tag v-if="resource.hypervisor">
|
<a-tag v-if="resource.hypervisor">
|
||||||
{{ resource.hypervisor }}
|
{{ resource.hypervisor }}
|
||||||
</a-tag>
|
</a-tag>
|
||||||
@ -158,7 +161,7 @@
|
|||||||
<span v-else>{{ resource.ipaddress }}</span>
|
<span v-else>{{ resource.ipaddress }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="resource-detail-item" v-if="resource.virtualmachineid">
|
<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>
|
<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"/>
|
<status style="margin-top: -5px" :text="resource.vmstate" v-if="resource.vmstate"/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user