Add title sections to invoices backend and frontend, #41

This commit is contained in:
2025-11-19 10:12:45 +01:00
parent 1b76c6c61b
commit ebbbe42cc3
7 changed files with 80 additions and 31 deletions
@@ -296,6 +296,7 @@ const save = async () => {
items: invoice.value.items.map(item => ({
id: item.id, // Include ID for existing items
position: item.position,
isSection: item.isSection,
type: item.type,
title: item.title,
description: item.description,
@@ -323,6 +324,7 @@ const save = async () => {
} finally {
// remove spinner from save button
isSaving.value = false
setTimeout(() => { isDirty.value = false }, 1000)
}
}