This is an automated email from the ASF dual-hosted git repository.

pearl11594 pushed a commit to branch 4.19
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.19 by this push:
     new 1f092667641 UI: Fix filtering of templates by account (#10425)
1f092667641 is described below

commit 1f09266764147ed957164494fe4b4449aeb1e592
Author: Bernardo De Marco Gonçalves <[email protected]>
AuthorDate: Tue Feb 25 09:43:27 2025 -0300

    UI: Fix filtering of templates by account (#10425)
    
    * fix filtering of templates by account
    
    * set filter to Mine when View Templates button is selected
---
 ui/src/components/view/InfoCard.vue | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ui/src/components/view/InfoCard.vue 
b/ui/src/components/view/InfoCard.vue
index 94570c715b8..d805f7b2719 100644
--- a/ui/src/components/view/InfoCard.vue
+++ b/ui/src/components/view/InfoCard.vue
@@ -1159,6 +1159,11 @@ export default {
       if (item.value) {
         query[item.param] = this.resource[item.value]
       } else {
+        if (item.name === 'template') {
+          query.templatefilter = 'self'
+          query.filter = 'self'
+        }
+
         if (item.param === 'account') {
           query[item.param] = this.resource.name
           query.domainid = this.resource.domainid

Reply via email to