shwstppr commented on a change in pull request #446: URL: https://github.com/apache/cloudstack-primate/pull/446#discussion_r444132985
########## File path: src/config/section/offering.js ########## @@ -27,7 +27,6 @@ export default { docHelp: 'adminguide/service_offerings.html#compute-and-disk-service-offerings', icon: 'cloud', permission: ['listServiceOfferings', 'listDomains'], - params: { isrecursive: 'true' }, Review comment: this is not correct. `isrecursive` must be passed to list offerings for domain and sub domain. `isrecursive=true` is inline with legacy UI  ########## File path: src/config/section/offering.js ########## @@ -109,7 +108,6 @@ export default { icon: 'hdd', docHelp: 'adminguide/service_offerings.html#compute-and-disk-service-offerings', permission: ['listDiskOfferings', 'listDomains'], - params: { isrecursive: 'true' }, Review comment: same as above ########## File path: src/views/offering/AddDiskOffering.vue ########## @@ -358,6 +358,9 @@ export default { } }, isAdmin () { + if (!['Admin'].includes(this.$store.getters.userInfo.roletype)) { + this.isPublic = false + } Review comment: Same as above. Instead setting isPublic to false here. `handleSubmit` should be checked for the value and visibility of `a-select` element for domain must be fixed for domain admin ########## File path: src/views/offering/AddComputeOffering.vue ########## @@ -606,6 +606,9 @@ export default { } }, isAdmin () { + if (!['Admin'].includes(this.$store.getters.userInfo.roletype)) { + this.isPublic = false + } Review comment: `isAdmin` is a getter function and should not be setting variable values. Also, this change does not solve root issue, ie, domain selection element is not visible to domain admin in create Compute Offering offering and isPublic is passed true in create API.   ---------------------------------------------------------------- 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