mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 22:44:06 +01:00
This commit is contained in:
parent
badaf6ffb8
commit
33b9a6d331
18 changed files with 78 additions and 41 deletions
|
|
@ -25,7 +25,7 @@ export const fetchNewDailyNote = (app: App, notebook: string) => {
|
|||
|
||||
export const newDailyNote = (app: App) => {
|
||||
const exit = window.siyuan.dialogs.find(item => {
|
||||
if (item.element.getAttribute("data-key") === window.siyuan.config.keymap.general.dailyNote.custom) {
|
||||
if (item.element.getAttribute("data-key") === Constants.DIALOG_DIALYNOTE) {
|
||||
item.destroy();
|
||||
return true;
|
||||
}
|
||||
|
|
@ -74,7 +74,7 @@ export const newDailyNote = (app: App) => {
|
|||
</div>`,
|
||||
width: isMobile() ? "92vw" : "520px",
|
||||
});
|
||||
dialog.element.setAttribute("data-key", window.siyuan.config.keymap.general.dailyNote.custom);
|
||||
dialog.element.setAttribute("data-key", Constants.DIALOG_DIALYNOTE);
|
||||
const btnsElement = dialog.element.querySelectorAll(".b3-button");
|
||||
const selectElement = dialog.element.querySelector(".b3-select") as HTMLSelectElement;
|
||||
selectElement.value = localNotebookId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue