mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
infocard: subjective navigation buttons on info card
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
38cf569b27
commit
598476535a
@ -41,6 +41,7 @@ export function generateRouterMap (section) {
|
|||||||
params: child.params ? child.params : {},
|
params: child.params ? child.params : {},
|
||||||
columns: child.columns,
|
columns: child.columns,
|
||||||
details: child.details,
|
details: child.details,
|
||||||
|
related: child.related,
|
||||||
actions: child.actions
|
actions: child.actions
|
||||||
},
|
},
|
||||||
component: component,
|
component: component,
|
||||||
@ -57,6 +58,7 @@ export function generateRouterMap (section) {
|
|||||||
resourceType: child.resourceType,
|
resourceType: child.resourceType,
|
||||||
params: child.params ? child.params : {},
|
params: child.params ? child.params : {},
|
||||||
details: child.details,
|
details: child.details,
|
||||||
|
related: child.related,
|
||||||
tabs: child.tabs,
|
tabs: child.tabs,
|
||||||
actions: child.actions ? child.actions : []
|
actions: child.actions ? child.actions : []
|
||||||
},
|
},
|
||||||
@ -101,6 +103,7 @@ export function generateRouterMap (section) {
|
|||||||
resourceType: section.resourceType,
|
resourceType: section.resourceType,
|
||||||
params: section.params ? section.params : {},
|
params: section.params ? section.params : {},
|
||||||
details: section.details,
|
details: section.details,
|
||||||
|
related: section.related,
|
||||||
tabs: section.tabs,
|
tabs: section.tabs,
|
||||||
actions: section.actions ? section.actions : []
|
actions: section.actions ? section.actions : []
|
||||||
},
|
},
|
||||||
|
|||||||
@ -15,6 +15,15 @@ export default {
|
|||||||
'cpunumber', 'cpuused', 'cputotal', 'memoryintfreekbs', 'memorytotal',
|
'cpunumber', 'cpuused', 'cputotal', 'memoryintfreekbs', 'memorytotal',
|
||||||
'networkread', 'networkwrite', 'diskkbsread', 'diskkbswrite', 'diskiopstotal'
|
'networkread', 'networkwrite', 'diskkbsread', 'diskkbswrite', 'diskiopstotal'
|
||||||
],
|
],
|
||||||
|
related: [{
|
||||||
|
name: 'vmsnapshot',
|
||||||
|
title: 'VM Snapshots',
|
||||||
|
param: 'virtualmachineid'
|
||||||
|
}, {
|
||||||
|
name: 'affinitygroup',
|
||||||
|
title: 'Affinity Groups',
|
||||||
|
param: 'virtualmachineid'
|
||||||
|
}],
|
||||||
tabs: [{
|
tabs: [{
|
||||||
name: 'hardware',
|
name: 'hardware',
|
||||||
component: () => import('@/views/compute/InstanceHardware.vue')
|
component: () => import('@/views/compute/InstanceHardware.vue')
|
||||||
@ -174,7 +183,7 @@ export default {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'affinitygroups',
|
name: 'affinitygroup',
|
||||||
title: 'Affinity Groups',
|
title: 'Affinity Groups',
|
||||||
icon: 'swap',
|
icon: 'swap',
|
||||||
permission: [ 'listAffinityGroups' ],
|
permission: [ 'listAffinityGroups' ],
|
||||||
|
|||||||
@ -238,6 +238,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="account-center-tags" v-if="$route.meta.related">
|
||||||
|
<span v-for="item in $route.meta.related" :key="item.path">
|
||||||
|
<router-link :to="{ path: '/' + item.name + '?' + item.param + '=' + resource.id }">
|
||||||
|
<a-button style="margin-right: 10px">
|
||||||
|
View {{ $t(item.title) }}
|
||||||
|
</a-button>
|
||||||
|
</router-link>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="account-center-tags" v-if="showKeys">
|
<div class="account-center-tags" v-if="showKeys">
|
||||||
<a-divider/>
|
<a-divider/>
|
||||||
<div class="user-keys">
|
<div class="user-keys">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user