You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by GitBox <gi...@apache.org> on 2020/01/03 01:45:36 UTC

[GitHub] [cloudstack-primate] rhtyd commented on a change in pull request #92: [WIP] - Register Template Action

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:
users@infra.apache.org


With regards,
Apache Git Services