mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-09 16:54:21 +01:00
This commit is contained in:
parent
f3869593f0
commit
2ca0cfadde
6 changed files with 19 additions and 24 deletions
|
|
@ -190,6 +190,12 @@ export const assetInputEvent = (element: Element, localSearch?: ISearchAssetOpti
|
|||
orderBy: localSearch.sort
|
||||
}, (response) => {
|
||||
element.nextElementSibling.classList.add("fn__none");
|
||||
if (response.code === 1) {
|
||||
element.querySelector("#searchAssetList").innerHTML = `<div class="search__empty">
|
||||
${window.siyuan.languages["_kernel"][214]}
|
||||
</div>`;
|
||||
return;
|
||||
}
|
||||
const nextElement = element.querySelector('[data-type="assetNext"]');
|
||||
if (page < response.data.pageCount) {
|
||||
nextElement.removeAttribute("disabled");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue