new functions and fixes

This commit is contained in:
Mateusz Gruszczyński committed 2026-08-06 09:08:02 +02:00
1 parent 1e80fb2bcb
commit 7989a873e7
11 files changed
+191 -42

No files matched your search

+5 -1
View File
@@ -102,7 +102,11 @@ export function createWorkspaceNoteAdapter() {
}),
configureView(info) {
const button = document.querySelector("#delete-note");
if (button) button.hidden = info.note_protected;
if (!button) return;
button.hidden = !info.can_delete;
button.title = info.note_protected
? "Delete protected note (owner only)"
: "Delete note";
},
async deleteNote(info, accessToken) {
if (!await askConfirm(`Delete note “${info.title}”? This cannot be undone.`, {