mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
This commit is contained in:
parent
d1abd1c115
commit
7c4cff3790
1 changed files with 2 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ export const newDailyNote = () => {
|
|||
return;
|
||||
}
|
||||
const localNotebookId = window.localStorage.getItem(Constants.LOCAL_DAILYNOTEID);
|
||||
if (localNotebookId && getNotebookName(localNotebookId)) {
|
||||
if (localNotebookId && getNotebookName(localNotebookId) && !isMobile()) {
|
||||
fetchPost("/api/filetree/createDailyNote", {
|
||||
notebook:localNotebookId
|
||||
});
|
||||
|
|
@ -48,6 +48,7 @@ export const newDailyNote = () => {
|
|||
});
|
||||
const btnsElement = dialog.element.querySelectorAll(".b3-button");
|
||||
const selectElement = dialog.element.querySelector(".b3-select") as HTMLSelectElement;
|
||||
selectElement.value = localNotebookId;
|
||||
btnsElement[0].addEventListener("click", () => {
|
||||
dialog.destroy();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue