rhtyd commented on a change in pull request #110: [WIP] - Take Volume Snapshot 
Action
URL: https://github.com/apache/cloudstack-primate/pull/110#discussion_r366789526
 
 

 ##########
 File path: src/views/AutogenView.vue
 ##########
 @@ -32,7 +32,26 @@
                 size="small"
                 type="dashed"
                 icon="reload"
-                @click="fetchData()">
+                @click="fetchData()" />
+            </a-tooltip>
+            <a-tooltip
+              v-for="(action, actionIndex) in actions"
+              :key="actionIndex"
+              placement="bottom">
+              <template slot="title">
+                {{ $t(action.label) }}
+              </template>
+              <a-button
+                v-if="action.api in $store.getters.apis &&
+                  ((!dataView && (action.listView || action.groupAction && 
selectedRowKeys.length > 0)) ||
+                  (dataView && action.dataView && ('show' in action ? 
action.show(resource) : true)) ||
+                  (treeView && ('show' in action ? action.show(treeSelected) : 
true)))"
+                :icon="action.icon"
+                :type="action.icon === 'delete' ? 'danger' : (action.icon === 
'plus' ? 'primary' : 'default')"
+                shape="circle"
+                style="margin-right: 5px"
+                @click="execAction(action)"
+              >
 
 Review comment:
   Remove these changes

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


With regards,
Apache Git Services

Reply via email to