Skip to content

Commit

Permalink
Document links and UI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
harikrishna-patnala committed Jan 9, 2023
1 parent 99bdeef commit 8924a49
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
8 changes: 7 additions & 1 deletion ui/src/components/view/ListView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@
<router-link :to="{ path: $route.path + '/' + record.id }">{{ text }}</router-link>
</span>
<span v-else-if="$route.name === 'guestoshypervisormapping'">
<QuickView
style="margin-left: 5px"
:actions="actions"
:resource="record"
:enabled="quickViewEnabled() && actions.length > 0 && columns && columns[0].dataIndex === 'hypervisor' "
@exec-action="$parent.execAction"/>
<router-link :to="{ path: $route.path + '/' + record.id }">{{ text }}</router-link>
</span>
<span v-else>{{ text }}</span>
Expand Down Expand Up @@ -532,7 +538,7 @@ export default {
'/template', '/iso',
'/project', '/account',
'/zone', '/pod', '/cluster', '/host', '/storagepool', '/imagestore', '/systemvm', '/router', '/ilbvm', '/annotation',
'/computeoffering', '/systemoffering', '/diskoffering', '/backupoffering', '/networkoffering', '/vpcoffering'].join('|'))
'/computeoffering', '/systemoffering', '/diskoffering', '/backupoffering', '/networkoffering', '/vpcoffering', '/guestos', '/guestoshypervisormapping'].join('|'))
.test(this.$route.path)
},
enableGroupAction () {
Expand Down
12 changes: 6 additions & 6 deletions ui/src/config/section/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default {
{
name: 'guestos',
title: 'label.guest.os',
docHelp: 'adminguide/service_offerings.html#compute-and-disk-service-offerings',
docHelp: 'adminguide/guest_os.html#guest-os',
icon: 'laptop-outlined',
permission: ['listOsTypes', 'listOsCategories'],
columns: ['name', 'oscategoryname', 'isuserdefined'],
Expand Down Expand Up @@ -117,18 +117,19 @@ export default {
icon: 'edit-outlined',
label: 'label.edit',
dataView: true,
popup: true,
args: ['osdisplayname']
},
{
api: 'addGuestOsMapping',
icon: 'link-outlined',
label: 'label.add.guest.os.hypervisor.mapping',
dataView: true,
popup: true,
args: ['ostypeid', 'hypervisor', 'hypervisorversion', 'osnameforhypervisor', 'osmappingcheckenabled', 'forced'],
mapping: {
ostypeid: {
api: 'listOsTypes',
params: (record) => { return { ostypeid: record.id } }
value: (record) => { return record.id }
}
}
},
Expand All @@ -137,7 +138,6 @@ export default {
icon: 'delete-outlined',
label: 'label.action.delete.guest.os',
message: 'message.action.delete.guest.os',
docHelp: 'adminguide/service_offerings.html#modifying-or-deleting-a-service-offering',
dataView: true,
popup: true
}
Expand All @@ -146,7 +146,7 @@ export default {
{
name: 'guestoshypervisormapping',
title: 'label.guest.os.hypervisor.mappings',
docHelp: 'adminguide/service_offerings.html#compute-and-disk-service-offerings',
docHelp: 'adminguide/guest_os.html#guest-os-hypervisor-mapping',
icon: 'api-outlined',
permission: ['listGuestOsMapping'],
columns: ['hypervisor', 'hypervisorversion', 'osdisplayname', 'osnameforhypervisor'],
Expand All @@ -167,14 +167,14 @@ export default {
icon: 'edit-outlined',
label: 'label.edit',
dataView: true,
popup: true,
args: ['osnameforhypervisor', 'osmappingcheckenabled']
},
{
api: 'removeGuestOsMapping',
icon: 'delete-outlined',
label: 'label.action.delete.guest.os.hypervisor.mapping',
message: 'message.action.delete.guest.os.hypervisor.mapping',
docHelp: 'adminguide/service_offerings.html#modifying-or-deleting-a-service-offering',
dataView: true,
popup: true
}
Expand Down

0 comments on commit 8924a49

Please sign in to comment.