mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-08 00:04:21 +01:00
This commit is contained in:
parent
d23d9d61ca
commit
445f37c5bc
1 changed files with 3 additions and 3 deletions
|
|
@ -43,9 +43,9 @@ const renderDoc = (element: HTMLElement, currentPage: number) => {
|
|||
assetElement.classList.add("fn__none");
|
||||
mdElement.classList.add("fn__none");
|
||||
docElement.classList.add("fn__none");
|
||||
if (typeElement.value === "2") {
|
||||
if (typeElement.value === "2" || typeElement.value === "4") {
|
||||
notebookElement.setAttribute("disabled", "disabled");
|
||||
if (window.siyuan.storage[Constants.LOCAL_HISTORY].type !== 2) {
|
||||
if (window.siyuan.storage[Constants.LOCAL_HISTORY].type !== 2 && window.siyuan.storage[Constants.LOCAL_HISTORY].type !== 4) {
|
||||
opElement.value = "all";
|
||||
}
|
||||
opElement.querySelector('option[value="clean"]').classList.remove("fn__none");
|
||||
|
|
@ -57,7 +57,7 @@ const renderDoc = (element: HTMLElement, currentPage: number) => {
|
|||
opElement.querySelector('option[value="outline"]').classList.add("fn__none");
|
||||
} else {
|
||||
notebookElement.removeAttribute("disabled");
|
||||
if (window.siyuan.storage[Constants.LOCAL_HISTORY].type === 2) {
|
||||
if (window.siyuan.storage[Constants.LOCAL_HISTORY].type === 2 || window.siyuan.storage[Constants.LOCAL_HISTORY].type === 4) {
|
||||
opElement.value = "all";
|
||||
}
|
||||
opElement.querySelector('option[value="clean"]').classList.add("fn__none");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue