Skip to content

Commit cc0f7cf

Browse files
committed
Include URL from entry while moving to notes
1 parent d2a6d14 commit cc0f7cf

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
# [1.3.0] - 2024-10-15
4+
5+
* Include URL from entry while moving to notes
6+
37
# [1.2.0] - 2023-10-19
48

59
* Retry sending failed notifications with the next trigger

src/main/resources/assets/script/week-edit.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ class Editor {
9393
return;
9494
}
9595

96+
let url = inputElement.dataset.url.trim();
97+
if (url !== "") {
98+
text = `${text}: ${url}`;
99+
}
100+
96101
let textareaElement = document.querySelector("#notes-sidebar-text") as HTMLTextAreaElement;
97102
textareaElement.value = `${textareaElement.value.trim()}\n${text}\n`;
98103

0 commit comments

Comments
 (0)