mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-11-13 12:23:44 +01:00
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:
1 parent
eafaf0027c
commit
706f8fea2b
4 files changed
+31
-2
No files matched your search
@@ -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 => {
|
||||
|
||||
Reference in new issue
Block a user