mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-23 07:24:07 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
cd50b37e7f
6 changed files with 15 additions and 1 deletions
|
|
@ -303,7 +303,16 @@ export const openHistory = (app: App) => {
|
|||
return;
|
||||
}
|
||||
|
||||
let notebookSelectHTML = "";
|
||||
let existLocalHistoryNoteID = false;
|
||||
window.siyuan.notebooks.forEach((item) => {
|
||||
if (!item.closed) {
|
||||
if (item.id === window.siyuan.storage[Constants.LOCAL_HISTORYNOTEID]) {
|
||||
existLocalHistoryNoteID = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
let notebookSelectHTML = `<option value='%' ${!existLocalHistoryNoteID? "selected" : ""}>${window.siyuan.languages.allNotebooks}</option>`;
|
||||
window.siyuan.notebooks.forEach((item) => {
|
||||
if (!item.closed) {
|
||||
notebookSelectHTML += ` <option value="${item.id}"${item.id === window.siyuan.storage[Constants.LOCAL_HISTORYNOTEID] ? " selected" : ""}>${escapeHtml(item.name)}</option>`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue