diff --git a/ui/src/config/router.js b/ui/src/config/router.js index d7f29670981..4684e256076 100644 --- a/ui/src/config/router.js +++ b/ui/src/config/router.js @@ -57,8 +57,8 @@ export function generateRouterMap (section) { resourceType: child.resourceType, params: child.params ? child.params : {}, details: child.details, - actions: child.actions ? child.actions : [], - viewComponent: child.viewComponent + tabs: child.tabs, + actions: child.actions ? child.actions : [] }, component: component } @@ -101,10 +101,10 @@ export function generateRouterMap (section) { resourceType: section.resourceType, params: section.params ? section.params : {}, details: section.details, - actions: section.actions ? section.actions : [], - viewComponent: section.viewComponent + tabs: section.tabs, + actions: section.actions ? section.actions : [] }, - component: section.viewComponent ? section.viewComponent : AutogenView + component: section.component ? section.component : AutogenView }] } diff --git a/ui/src/config/section/compute.js b/ui/src/config/section/compute.js index a55011aaaa4..940c5fb1c81 100644 --- a/ui/src/config/section/compute.js +++ b/ui/src/config/section/compute.js @@ -9,13 +9,19 @@ export default { icon: 'desktop', permission: [ 'listVirtualMachinesMetrics', 'listVirtualMachines' ], resourceType: 'UserVm', - viewComponent: () => import('@/views/compute/InstanceView.vue'), columns: [ { 'name': (record) => { return record.displayname } }, 'state', 'instancename', { 'ipaddress': (record) => { return record.nic[0].ipaddress } }, 'account', 'zonename', 'cpunumber', 'cpuused', 'cputotal', 'memoryintfreekbs', 'memorytotal', 'networkread', 'networkwrite', 'diskkbsread', 'diskkbswrite', 'diskiopstotal' ], + tabs: [{ + name: 'hardware', + component: () => import('@/views/compute/InstanceHardware.vue') + }, { + name: 'settings', + component: () => import('@/views/setting/ResourceSettingsTab.vue') + }], hidden: ['instancename', 'account'], actions: [ { diff --git a/ui/src/locales/en.json b/ui/src/locales/en.json index c16c6bcdf3d..88c7193e769 100644 --- a/ui/src/locales/en.json +++ b/ui/src/locales/en.json @@ -228,6 +228,7 @@ "haenable": "HA Enabled", "hahost": "HA Enabled", "haprovider": "HA Provider", + "hardware": "Hardware", "hastate": "HA State", "hideipaddressusage": "Hide IP Address Usage", "host": "IP Address", @@ -795,6 +796,7 @@ "servicelist": "Services", "serviceofferingid": "Compute offering", "serviceofferingname": "Compute offering", + "settings": "Settings", "shareWith": "Share With", "shrinkok": "Shrink OK", "size": "Size", diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index 89426f9b82d..903f350d136 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -169,8 +169,7 @@
- Size: {{ (item.size / (1024 * 1024 * 1024.0)).toFixed(4) }} GB
- Physical Size: {{ (item.physicalsize / (1024 * 1024 * 1024.0)).toFixed(4) }} GB
- Provisioning: {{ item.provisioningtype }}
- Storage Pool: {{ item.storage }} ({{ item.storagetype }})
-
- Type: {{ item.type }}
- Broadcast URI: {{ item.broadcasturi }}
- Isolation URI: {{ item.isolationuri }}
-