mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
This commit is contained in:
parent
1dc0b67d93
commit
c5de82d91a
1 changed files with 7 additions and 0 deletions
|
|
@ -22,7 +22,14 @@ declare interface INotebookConf {
|
|||
|
||||
export const genNotebookOption = (id: string) => {
|
||||
let html = `<option value="">${window.siyuan.languages.currentNotebook}</option>`;
|
||||
const helpIds: string[] = [];
|
||||
Object.keys(Constants.HELP_PATH).forEach((key: "zh_CN") => {
|
||||
helpIds.push(Constants.HELP_PATH[key]);
|
||||
});
|
||||
window.siyuan.notebooks.forEach((item) => {
|
||||
if (helpIds.includes(item.id)) {
|
||||
return;
|
||||
}
|
||||
html += `<option value="${item.id}" ${id === item.id ? "selected" : ""}>${item.name}</option>`;
|
||||
});
|
||||
return html;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue