implemented moving of document positions

This commit is contained in:
2025-07-15 23:20:48 +02:00
parent 31916d83df
commit ffff345a8c
5 changed files with 85 additions and 14 deletions

View File

@@ -22,6 +22,7 @@
const resp = await fetch(url,{credentials:'include'});
if (resp.ok){
doc = await resp.json();
error = null;
} else {
error = await resp.text();
}
@@ -72,6 +73,7 @@
});
if (resp.ok){
doc.positions = await resp.json();
error = null;
} else {
error = await resp.text();
}
@@ -189,7 +191,7 @@
<button onclick={() => position_select = true}>{t('document.add_position')}</button>
{/if}
</legend>
<PositionList bind:document={doc} {submit} />
<PositionList bind:document={doc} {submit} bind:error={error} />
</fieldset>
<fieldset>
<legend>{t('document.footer')}</legend>