preparing tagging of transactions

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-04-06 23:15:36 +02:00
parent d6714224bb
commit b4b3173cc7
3 changed files with 13 additions and 2 deletions

View File

@@ -6,6 +6,7 @@
import { error, yikes } from '../../warn.svelte';
import { user } from '../../user.svelte';
import Autocomplete from '../../Components/Autocomplete.svelte';
import Tags from '../tags/TagList.svelte';
let defaultAccount = {
id : 0,
@@ -23,7 +24,8 @@
},
destination : {},
amount : 0.0,
purpose : {}
purpose : {},
tags : []
});
let router = useTinyRouter();
@@ -73,6 +75,7 @@
let res = await post(url, data);
if (res.ok) {
yikes();
entry.tags = [];
onSave();
document.getElementById('date-input').focus();
} else error(res);
@@ -130,6 +133,9 @@
<span>{t('purpose')}</span>
<Autocomplete bind:candidate={entry.purpose} getCandidates={getPurposes} />
<span>{t('tags')}</span>
<Tags module={null} bind:tags={entry.tags} />
<span></span>
<span>
<button onclick={save}>{t('save')}</button>