From 698d89b1342b7166945bb74bd4757bec8aeb8cfb Mon Sep 17 00:00:00 2001
From: 简律纯 <i@jyunko.cn>
Date: Wed, 18 Mar 2026 11:49:20 +0800
Subject: Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
---
 packages/ui/src/pages/instances-view.tsx | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

(limited to 'packages/ui/src/pages/instances-view.tsx')

diff --git a/packages/ui/src/pages/instances-view.tsx b/packages/ui/src/pages/instances-view.tsx
index 4d36201..07a2135 100644
--- a/packages/ui/src/pages/instances-view.tsx
+++ b/packages/ui/src/pages/instances-view.tsx
@@ -150,10 +150,20 @@ export function InstancesView() {
           Instances
         </h1>
         <div className="flex items-center gap-2">
-          <Button type="button" variant="outline" onClick={handleImport}>
+          <Button
+            type="button"
+            variant="outline"
+            onClick={handleImport}
+            disabled={isImporting}
+          >
             {isImporting ? "Importing..." : "Import"}
           </Button>
-          <Button type="button" variant="outline" onClick={handleRepair}>
+          <Button
+            type="button"
+            variant="outline"
+            onClick={handleRepair}
+            disabled={repairing}
+          >
             {repairing ? "Repairing..." : "Repair Index"}
           </Button>
           <Button
-- 
cgit v1.2.3-70-g09d2

