Jotley / app / macOS / Views / NoteDetailPlaceholderView+SummaryRecording.swift
| 1 | import SwiftUI |
| 2 | extension NoteDetailPlaceholderView { |
| 3 | func handleSummarizeAction(templateKey: String) async { |
| 4 | isSummaryEditorFocused = false |
| 5 | showRawMarkdownSummary = false |
| 6 | summaryInlineEditRequestCounter = 0 |
| 7 | selectedTab = DetailTab.summary.rawValue |
| 8 | await viewModel.generateSummary(note: note, templateKey: templateKey) |
| 9 | editableSummary = note.summary ?? "" |
| 10 | } |
| 11 | } |