new functions and fixes
This commit is contained in:
@@ -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