shwstppr commented on a change in pull request #399:
URL: https://github.com/apache/cloudstack-primate/pull/399#discussion_r439345218



##########
File path: src/views/image/TemplateZones.vue
##########
@@ -110,6 +101,24 @@
         </a-form>
       </a-spin>
     </a-modal>
+
+    <a-modal
+      v-if="'deleteTemplate' in $store.getters.apis"

Review comment:
       Adding `v-if` in modal itself will make delete button visible 
irrespective user access.
   It is showing for read-only admin user
   ![Screenshot from 2020-06-12 
16-13-44](https://user-images.githubusercontent.com/153340/84494891-e180b780-acc7-11ea-84ed-c25ee3c7f8a0.png)
   




----------------------------------------------------------------
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


Reply via email to