diff --git a/ui/src/components/widgets/ListView.vue b/ui/src/components/widgets/ListView.vue index 954d1abbd5f..c42fd26639d 100644 --- a/ui/src/components/widgets/ListView.vue +++ b/ui/src/components/widgets/ListView.vue @@ -18,7 +18,7 @@ {{ text }} - {{ text }} + {{ text }} {{ text }} @@ -38,7 +38,7 @@ {{ text }} - {{ text }} + {{ text }} {{ text }} diff --git a/ui/src/config/router.js b/ui/src/config/router.js index 49a178d9789..f15919e240b 100644 --- a/ui/src/config/router.js +++ b/ui/src/config/router.js @@ -39,6 +39,7 @@ export function generateRouterMap (section) { resourceType: child.resourceType, params: child.params ? child.params : {}, columns: child.columns, + details: child.details, actions: child.actions }, component: component, @@ -53,6 +54,7 @@ export function generateRouterMap (section) { permission: child.permission, resourceType: child.resourceType, params: child.params ? child.params : {}, + details: child.details, actions: child.actions ? child.actions : [], viewComponent: child.viewComponent }, @@ -94,6 +96,7 @@ export function generateRouterMap (section) { permission: section.permission, resourceType: section.resourceType, params: section.params ? section.params : {}, + details: section.details, actions: section.actions ? section.actions : [], viewComponent: section.viewComponent }, diff --git a/ui/src/config/section/compute.js b/ui/src/config/section/compute.js index ffa7ac56f93..a55011aaaa4 100644 --- a/ui/src/config/section/compute.js +++ b/ui/src/config/section/compute.js @@ -149,6 +149,7 @@ export default { icon: 'key', permission: [ 'listSSHKeyPairs' ], columns: ['name', 'fingerprint', 'account', 'domain'], + details: ['name', 'fingerprint', 'account', 'domain'], actions: [ { api: 'createSSHKeyPair', @@ -172,6 +173,7 @@ export default { icon: 'swap', permission: [ 'listAffinityGroups' ], columns: ['name', 'type', 'description', 'account', 'domain'], + details: ['name', 'id', 'description', 'type', 'account', 'domain'], actions: [ { api: 'createAffinityGroup', diff --git a/ui/src/config/section/image.js b/ui/src/config/section/image.js index fc15e65feab..3320646a5c4 100644 --- a/ui/src/config/section/image.js +++ b/ui/src/config/section/image.js @@ -11,6 +11,7 @@ export default { resourceType: 'Template', params: { 'templatefilter': 'executable' }, columns: ['name', 'ostypename', 'status', 'hypervisor', 'account', 'domain'], + details: ['name', 'id', 'displaytext', 'checksum', 'hypervisor', 'format', 'ostypename', 'size', 'isready', 'passwordenabled', 'directdownload', 'isextractable', 'isdynamicallyscalable', 'ispublic', 'isfeatured', 'crosszones', 'type', 'account', 'domain', 'created'], actions: [ { api: 'registerTemplate', @@ -55,6 +56,7 @@ export default { permission: [ 'listIsos' ], resourceType: 'ISO', columns: ['name', 'ostypename', 'account', 'domain'], + details: ['name', 'id', 'displaytext', 'ostypename', 'bootable', 'directdownload', 'size', 'account', 'domain', 'created'], actions: [ { api: 'registerIso', diff --git a/ui/src/config/section/network.js b/ui/src/config/section/network.js index ec7bf3cb530..e7808eeea7e 100644 --- a/ui/src/config/section/network.js +++ b/ui/src/config/section/network.js @@ -10,6 +10,7 @@ export default { permission: [ 'listNetworks' ], resourceType: 'Network', columns: ['name', 'state', 'type', 'cidr', 'ip6cidr', 'broadcasturi', 'account', 'zonename'], + details: ['name', 'id', 'description', 'type', 'traffictype', 'vpcid', 'vlan', 'broadcasturi', 'cidr', 'ip6cidr', 'netmask', 'gateway', 'ispersistent', 'restartrequired', 'reservediprange', 'redundantrouter', 'networkdomain', 'zonename', 'account', 'domain'], actions: [ { api: 'deleteNetwork', @@ -27,7 +28,8 @@ export default { icon: 'deployment-unit', permission: [ 'listVPCs' ], resourceType: 'Vpc', - columns: ['name', 'state', 'displaytext', 'cidr', 'account', 'zonename'] + columns: ['name', 'state', 'displaytext', 'cidr', 'account', 'zonename'], + details: ['name', 'id', 'displaytext', 'cidr', 'networkdomain', 'ispersistent', 'redundantvpcrouter', 'restartrequired', 'zonename', 'account', 'domain'] }, { name: 'securitygroups', @@ -35,7 +37,8 @@ export default { icon: 'fire', permission: [ 'listSecurityGroups' ], resourceType: 'SecurityGroup', - columns: ['name', 'description', 'account', 'domain'] + columns: ['name', 'description', 'account', 'domain'], + details: ['name', 'id', 'description', 'account', 'domain'] }, { name: 'publicip', @@ -43,7 +46,8 @@ export default { icon: 'environment', permission: [ 'listPublicIpAddresses' ], resourceType: 'PublicIpAddress', - columns: ['ipaddress', 'state', 'associatednetworkname', 'virtualmachinename', 'allocated', 'account', 'zonename'] + columns: ['ipaddress', 'state', 'associatednetworkname', 'virtualmachinename', 'allocated', 'account', 'zonename'], + details: ['ipaddress', 'id', 'associatednetworkname', 'virtualmachinename', 'networkid', 'issourcenat', 'isstaticnat', 'virtualmachinename', 'vmipaddress', 'vlan', 'allocated', 'account', 'zonename'] }, { name: 'vpngateway', @@ -51,7 +55,8 @@ export default { icon: 'lock', permission: [ 'listVpnCustomerGateways' ], resourceType: 'VpnGateway', - columns: ['name', 'ipaddress', 'gateway', 'cidrlist', 'ipsecpsk', 'account', 'domain'] + columns: ['name', 'ipaddress', 'gateway', 'cidrlist', 'ipsecpsk', 'account', 'domain'], + details: ['name', 'id', 'ipaddress', 'gateway', 'cidrlist', 'ipsecpsk', 'account', 'domain'] } ] } diff --git a/ui/src/config/section/storage.js b/ui/src/config/section/storage.js index 9c2e734efb5..d33c8128b59 100644 --- a/ui/src/config/section/storage.js +++ b/ui/src/config/section/storage.js @@ -11,6 +11,7 @@ export default { resourceType: 'Volume', columns: ['name', 'state', 'type', 'vmname', 'size', 'physicalsize', 'utilization', 'diskkbsread', 'diskkbswrite', 'diskiopstotal', 'storage', 'account', 'zonename'], hidden: ['storage', 'utilization'], + details: ['name', 'id', 'type', 'deviceid', 'sizegb', 'physicalsize', 'provisioningtype', 'utilization', 'diskkbsread', 'diskkbswrite', 'diskioread', 'diskiowrite', 'diskiopstotal', 'path'], actions: [ { api: 'createVolume', @@ -93,6 +94,7 @@ export default { permission: [ 'listSnapshots' ], resourceType: 'Snapshot', columns: ['name', 'state', 'volumename', 'intervaltype', 'created', 'account'], + details: ['name', 'id', 'volumename', 'intervaltype', 'account', 'domain', 'created'], actions: [ { api: 'createVolume', @@ -130,6 +132,7 @@ export default { permission: [ 'listVMSnapshot' ], resourceType: 'VMSnapshot', columns: ['name', 'state', 'type', 'current', 'parent', 'created', 'account'], + details: ['name', 'id', 'displayname', 'description', 'type', 'current', 'parent', 'virtualmachineid', 'account', 'domain', 'created'], actions: [ { api: 'revertToVMSnapshot', diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index 84bc400d1ce..d38e0f9e197 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -361,6 +361,9 @@ export default { } if (this.items.length > 0) { this.resource = this.items[0] + if (this.items.length === 1 && Object.keys(this.$route.query).length > 0) { + this.dataView = true + } } else { this.resource = {} } diff --git a/ui/src/views/common/DetailView.vue b/ui/src/views/common/DetailView.vue index 706e6c26dd4..783003e56ca 100644 --- a/ui/src/views/common/DetailView.vue +++ b/ui/src/views/common/DetailView.vue @@ -8,27 +8,33 @@ - - - {{ $t(key) }}
{{ value }} -
-
- - + style="width:100%"> + + + + + + {{ $t(key) }}
{{ resource[key] }} +
+
+ + +
+
@@ -61,6 +67,9 @@ export default { }, data () { return { + tabs: [{ + name: 'details' + }], settingsColumns: [ { title: this.$t('name'), @@ -78,11 +87,17 @@ export default { } }, watch: { + '$route' (to, from) { + console.log(this.resource) + }, resource: function (newItem, oldItem) { this.resource = newItem } }, methods: { + onTabChange (key) { + this.activeTab = key + } } } diff --git a/ui/src/views/common/InfoCard.vue b/ui/src/views/common/InfoCard.vue index a7e691d5b76..debb5d681c0 100644 --- a/ui/src/views/common/InfoCard.vue +++ b/ui/src/views/common/InfoCard.vue @@ -46,7 +46,7 @@
- {{ resource.vmname || resource.vm || resource.virtualmachineid }} + {{ resource.vmname || resource.vm || resource.virtualmachinename || resource.virtualmachineid }}
@@ -66,6 +66,10 @@ {{ resource.networkofferingname || resource.networkofferingid }}
+
+ + {{ resource.associatednetworkname || resource.associatednetworkid }} +
{{ resource.vpcofferingname || resource.vpcofferingid }} @@ -98,7 +102,7 @@
- {{ resource.account }} + {{ resource.account }}
@@ -263,8 +267,12 @@ export default { if ('tags' in this.resource) { this.tags = this.resource.tags } - this.getTags() - this.getNotes() + if (this.resourceType) { + this.getTags() + } + if (this.annotationType) { + this.getNotes() + } } }, methods: {