new functions and fixes
This commit is contained in:
1 parent
1e80fb2bcb
commit
7989a873e7
11 files changed
+191
-42
No files matched your search
@@ -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.`, {
|
||||
|
||||
Reference in new issue
Block a user