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:
@@ -64,6 +64,7 @@ struct HistoryView: View {
|
||||
}
|
||||
|
||||
private struct HistoryRow: View {
|
||||
@EnvironmentObject private var model: AppModel
|
||||
let entry: HistoryEntry
|
||||
let isSelected: Bool
|
||||
@ObservedObject var list: HistoryViewModel
|
||||
@@ -90,6 +91,10 @@ private struct HistoryRow: View {
|
||||
Spacer(minLength: Space.s4)
|
||||
Button(Strings.copy) { copy(entry.finalText) }
|
||||
.buttonStyle(KeyButtonStyle())
|
||||
Button(Strings.edit) { model.edit(entry: entry.id) }
|
||||
.buttonStyle(KeyButtonStyle())
|
||||
Button(Strings.delete) { list.delete(id: entry.id) }
|
||||
.buttonStyle(KeyButtonStyle())
|
||||
}
|
||||
.padding(.horizontal, Space.s4)
|
||||
.padding(.vertical, Space.s3)
|
||||
@@ -100,6 +105,7 @@ private struct HistoryRow: View {
|
||||
.contextMenu {
|
||||
Button(Strings.copy) { copy(entry.finalText) }
|
||||
Button(Strings.copyOriginal) { copy(entry.rawText) }
|
||||
Button(Strings.edit) { model.edit(entry: entry.id) }
|
||||
Divider()
|
||||
Button(Strings.delete, role: .destructive) { list.delete(id: entry.id) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user