Skip to content

Commit

Permalink
add markdown template to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Jul 14, 2024
1 parent 887ef3f commit 138a64d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions desktop/src/pages/settings/viewModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,16 @@ async function openLogsFolder() {
}

async function copyLogs() {
const logs = await invoke<string>("get_logs")
navigator.clipboard.writeText(logs)
const logs = await invoke<string>('get_logs')
const templated = `<details>
<summary>logs</summary>
\`\`\`console
${logs}
\`\`\`
</details>
`
navigator.clipboard.writeText(templated)
}

export function viewModel() {
Expand Down

0 comments on commit 138a64d

Please sign in to comment.