rhtyd commented on a change in pull request #298: URL: https://github.com/apache/cloudstack-primate/pull/298#discussion_r446268997
########## File path: src/components/view/ResourceView.vue ########## @@ -129,6 +148,26 @@ export default { } else { return true } + }, + fetchResourceQuota () { Review comment: @utchoang is there a way to not make changes in core components? Here's how you can extend the, for example; - Create required slot in AutogenView etc - Create a new custom component for rendering the view for a router name - In the new/separate component you can re-use AutogenView and pass any specific component in the slots for example: ``` <AutogenView ...pass any params here.... > <span slot="actions"> ... define extension here, and methods relatd to that... </span> </AutogenView> ``` If you follow this pattern you won't need to just extend thing inside the core components of resourceview, autogenview, listview etc; but use slot to extend them. ---------------------------------------------------------------- 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