rhtyd commented on a change in pull request #92: [WIP] - Register Template
Action
URL: https://github.com/apache/cloudstack-primate/pull/92#discussion_r362688021
##########
File path: src/config/section/image.js
##########
@@ -50,7 +50,11 @@ export default {
icon: 'plus',
label: 'Create template',
listView: true,
- args: ['url', 'name', 'displaytext', 'directdownload', 'zoneids',
'hypervisor', 'format', 'ostypeid', 'checksum', 'isextractable',
'passwordenabled', 'sshkeyenabled', 'isdynamicallyscalable', 'ispublic',
'isfeatured', 'isrouting', 'requireshvm']
+ popup: true,
+ show: (record, user, apis) => {
+ return Object.prototype.hasOwnProperty.call(apis,
'registerTemplate')
Review comment:
This is not needed for actions that are rendered in the top bar near
breadcrumbs because the actionbutton.vue already has: `v-if="action.api in
$store.getters.apis ...`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services