add a notifications when copied to clipboard

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2026-05-19 21:53:36 +02:00
parent ae372d7283
commit dcf9cb4c8e
+7
View File
@@ -212,6 +212,13 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
if m.page == pageFindings { if m.page == pageFindings {
if md := m.findingsPage.CurrentMarkdown(); md != "" { if md := m.findingsPage.CurrentMarkdown(); md != "" {
copyUI.WriteClipboard(md) copyUI.WriteClipboard(md)
return m, func() tea.Msg {
return notificationsUI.NotificationMsg{
Title: "Copied",
Body: "Finding copied to clipboard",
Kind: notificationsUI.KindSuccess,
}
}
} }
return m, nil return m, nil
} }