new finctions and fixes

This commit is contained in:
Mateusz Gruszczyński
2026-07-30 10:12:10 +02:00
parent bca9a37625
commit fb379ac69f
8 changed files with 74 additions and 21 deletions
+4 -1
View File
@@ -75,7 +75,10 @@ export function bindNoteFiles({ editor, endpoints, getAccessToken, canDelete, to
}
document.querySelector("#upload-button").addEventListener("click", () => {
if (!getAuthToken()) { toast("Log in to upload files."); return; }
if (!getAuthToken() && !getAccessToken()) {
toast("Log in or use a read-write share link to upload files.");
return;
}
input.click();
});
input.addEventListener("change", async event => {