refactoring branch, tatort page-svelte, Datenaktualisierung durch api, page.ts, choose better names

This commit is contained in:
2025-08-12 17:36:24 +02:00
parent 35a55d0676
commit 7bdfa1f69b
9 changed files with 116 additions and 360 deletions

View File

@@ -16,7 +16,6 @@
onDelete = () => {}
} = $props();
let names = list.map((l: ListItem) => l.name);
let localName = $state(currentName);
let wasCancelled = $state(false);
@@ -46,6 +45,8 @@
function commitIfValid() {
if (!error && !wasCancelled && localName != currentName) {
editedName = localName.trim();
inputRef?.blur();
isEditing = false;
onSave(editedName, currentName);
} else {
localName = currentName;