feat: edit a transcript in the Notitie editor, delete button per transcript
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -57,6 +57,8 @@ final class AppModel: ObservableObject {
|
||||
@Published private(set) var historyRevision = 0
|
||||
@Published private(set) var dictionaryRevision = 0
|
||||
@Published private(set) var searchFocusTick = 0
|
||||
/// The transcript currently open in the Notitie editor, if any.
|
||||
@Published var editingEntryID: UUID?
|
||||
@Published var lastError: String?
|
||||
@Published var section: Section = .transcripts
|
||||
@Published var confirmingClearHistory = false
|
||||
@@ -375,6 +377,12 @@ final class AppModel: ObservableObject {
|
||||
|
||||
// MARK: preview
|
||||
|
||||
/// Opens a transcript in the editor; edits go straight back into the history.
|
||||
func edit(entry id: UUID) {
|
||||
editingEntryID = id
|
||||
section = .note
|
||||
}
|
||||
|
||||
private func loadPreviewData() {
|
||||
note.text = "Notities voor vrijdag: Supabase-migratie plannen en Claude Code uitproberen."
|
||||
try? dictionary.load()
|
||||
|
||||
Reference in New Issue
Block a user