mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-05-25 12:17:22 +00:00
Add conditional menu items and disable sticky notes at root
This commit is contained in:
@@ -129,6 +129,9 @@ export function drawStickyNotes(stickyNotes, onSave, onDelete) {
|
||||
* @param {(note: StickyNote) => void} onDelete
|
||||
*/
|
||||
export function createNewStickyNote(stickyNotes, onSave, onDelete) {
|
||||
if (getContext().areStickyNotesEnabled() === false) {
|
||||
return;
|
||||
}
|
||||
const id = Date.now().toString();
|
||||
const site = getContext().getPath();
|
||||
const stickyNote = new StickyNote(id, site, "");
|
||||
|
||||
Reference in New Issue
Block a user