From 69551a05f2d2aeaa01709b6806c5685fea1fe5f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernardo=20De=20Marco=20Gon=C3=A7alves?= Date: Tue, 18 Feb 2025 20:30:37 -0300 Subject: [PATCH 1/2] fix filtering of templates by account --- ui/src/components/view/InfoCard.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/src/components/view/InfoCard.vue b/ui/src/components/view/InfoCard.vue index 94570c715b8d..0b11b778b48a 100644 --- a/ui/src/components/view/InfoCard.vue +++ b/ui/src/components/view/InfoCard.vue @@ -1159,6 +1159,10 @@ export default { if (item.value) { query[item.param] = this.resource[item.value] } else { + if (item.name === 'template') { + query.templatefilter = 'self' + } + if (item.param === 'account') { query[item.param] = this.resource.name query.domainid = this.resource.domainid From 7765e33513caf8e21514fa906f0b8173113473c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernardo=20De=20Marco=20Gon=C3=A7alves?= Date: Fri, 21 Feb 2025 18:36:32 -0300 Subject: [PATCH 2/2] set filter to Mine when View Templates button is selected --- ui/src/components/view/InfoCard.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/components/view/InfoCard.vue b/ui/src/components/view/InfoCard.vue index 0b11b778b48a..d805f7b2719a 100644 --- a/ui/src/components/view/InfoCard.vue +++ b/ui/src/components/view/InfoCard.vue @@ -1161,6 +1161,7 @@ export default { } else { if (item.name === 'template') { query.templatefilter = 'self' + query.filter = 'self' } if (item.param === 'account') {