rhtyd commented on a change in pull request #5597:
URL: https://github.com/apache/cloudstack/pull/5597#discussion_r733403089



##########
File path: ui/src/views/image/RegisterOrUploadIso.vue
##########
@@ -144,17 +144,11 @@
         <a-form-item
           :label="$t('label.ispublic')"
           v-if="$store.getters.userInfo.roletype === 'Admin' || 
$store.getters.features.userpublictemplateenabled" >
-          <a-switch
-            v-decorator="['ispublic', {
-              initialValue: false
-            }]" />
+          <a-switch v-decorator="['ispublic', { initialValue: false }]" />
         </a-form-item>
 
-        <a-form-item :label="$t('label.isfeatured')">
-          <a-switch
-            v-decorator="['isfeatured', {
-              initialValue: false
-            }]" />
+        <a-form-item :label="$t('label.isfeatured')" 
v-if="$store.getters.userInfo.roletype === 'Admin'">

Review comment:
       @utchoang cc @Pearl1594 @borisstoyanov should there be a check to see if 
admin has allowed this, say via some global setting? (I'm not sure if such a 
global setting or capabilities exists, so asking)




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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to