feat(transactions): allow filtering the transaction picker search

TransactionSelect takes a filters dict sent as query params; the search endpoint applies allowlisted ones (currency, account).
This commit is contained in:
Herculino Trotta committed 2026-11-10 21:55:29 -03:00
1 parent eafaf0027c
commit 706f8fea2b
4 files changed
+31 -2

No files matched your search

+2 -1
View File
@@ -136,7 +136,8 @@ window.TomSelect = function createDynamicTomSelect(element) {
config.preload = 'focus';
config.shouldLoad = () => true;
config.load = function (query, callback) {
let url = element.dataset.load + '?q=' + encodeURIComponent(query);
const url = new URL(element.dataset.load, window.location.origin);
url.searchParams.set('q', query);
fetch(url)
.then(response => response.json())
.then(json => {