Add title sections to invoices backend and frontend, #41
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user