UI: Fix filtering of templates by account (#10425)

* fix filtering of templates by account

* set filter to Mine when View Templates button is selected
This commit is contained in:
Bernardo De Marco Gonçalves 2025-02-25 09:43:27 -03:00 committed by GitHub
parent 5526ef0168
commit 1f09266764
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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