From cc0f7cf64723aad16b8525d3c0a2e50cb136bd48 Mon Sep 17 00:00:00 2001 From: Michael Wieland Date: Tue, 15 Oct 2024 17:19:45 +0200 Subject: [PATCH] Include URL from entry while moving to notes --- CHANGELOG.md | 4 ++++ src/main/resources/assets/script/week-edit.ts | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0fa6d43..25ff17b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +# [1.3.0] - 2024-10-15 + +* Include URL from entry while moving to notes + # [1.2.0] - 2023-10-19 * Retry sending failed notifications with the next trigger diff --git a/src/main/resources/assets/script/week-edit.ts b/src/main/resources/assets/script/week-edit.ts index 42c2cd1..2b39ea4 100644 --- a/src/main/resources/assets/script/week-edit.ts +++ b/src/main/resources/assets/script/week-edit.ts @@ -93,6 +93,11 @@ class Editor { return; } + let url = inputElement.dataset.url.trim(); + if (url !== "") { + text = `${text}: ${url}`; + } + let textareaElement = document.querySelector("#notes-sidebar-text") as HTMLTextAreaElement; textareaElement.value = `${textareaElement.value.trim()}\n${text}\n`;