From 30354fd7620d35b67250c0590c07246346bdd063 Mon Sep 17 00:00:00 2001 From: viettranx Date: Sun, 12 Apr 2026 18:09:42 +0700 Subject: [PATCH] refactor(vault): merge rescan and stop enrichment buttons into single toggle --- ui/web/src/pages/vault/vault-page.tsx | 29 +++++++++++++-------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/ui/web/src/pages/vault/vault-page.tsx b/ui/web/src/pages/vault/vault-page.tsx index 262a575b..f810cd58 100644 --- a/ui/web/src/pages/vault/vault-page.tsx +++ b/ui/web/src/pages/vault/vault-page.tsx @@ -152,25 +152,24 @@ export function VaultPage() { - - {enriching ? t("enriching", "Enriching documents...") : t("rescanTooltip", "Rescan workspace")} + {enriching ? t("stopEnrich", "Stop enrichment") : t("rescanTooltip", "Rescan workspace")} - {enriching && ( - - - - - - {t("stopEnrich", "Stop enrichment")} - - - )}