An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: Confirm rebuilding data index on mobile https://github.com/siyuan-note/siyuan/issues/19416
Danielabd1f77ec917
diff --git a/app/src/mobile/dock/MobileFiles.ts b/app/src/mobile/dock/MobileFiles.tsindex df23ce1ad9..584f1c3b7e 100644--- a/app/src/mobile/dock/MobileFiles.ts+++ b/app/src/mobile/dock/MobileFiles.ts@@ -26,6 +26,7 @@ import {newFileInTree} from "../../util/newFile";import {MenuItem} from "../../menus/Menu";import type {App} from "../../index";import {refreshFileTree} from "../../dialog/processSystem";+import {confirmDialog} from "../../dialog/confirmDialog";import {setStorageVal} from "../../protyle/util/compatibility";import {showMessage} from "../../dialog/message";import {dragOverScroll, stopScrollAnimation} from "../../boot/globalEvent/dragover";@@ -131,13 +132,13 @@ export class MobileFiles extends Model {if (type === "refresh") {if (!target.getAttribute("disabled")) {target.setAttribute("disabled", "disabled");- const notebooks: string[] = [];- Array.from(this.element.children).forEach(item => {- notebooks.push(item.getAttribute("data-url"));- });- refreshFileTree(() => {+ confirmDialog(window.siyuan.languages.rebuildDataIndex, window.siyuan.languages.rebuildDataIndexTip, () => {+ refreshFileTree(() => {+ target.removeAttribute("disabled");+ this.init(false);+ });+ }, () => {target.removeAttribute("disabled");- this.init(false);});}event.preventDefault();