new finctions and fixes
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user