diff --git a/dashboard/src/App.jsx b/dashboard/src/App.jsx
index a88bbb2..badf7ab 100644
--- a/dashboard/src/App.jsx
+++ b/dashboard/src/App.jsx
@@ -204,6 +204,20 @@ function CustomerDetail({ customerId }) {
const [selected, setSelected] = useState(new Set())
const [batchDeploying, setBatchDeploying] = useState(false)
const [batchProgress, setBatchProgress] = useState({ current: 0, total: 0, module: '' })
+ const [syncing, setSyncing] = useState(false)
+
+ const syncAndReload = async () => {
+ setSyncing(true)
+ setDeployResult(null)
+ try {
+ await fetch('/sync', {
+ method: 'POST', headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({ customer_id: customerId })
+ })
+ } catch (_) {}
+ reload()
+ setSyncing(false)
+ }
if (!customer) return
@@ -311,10 +325,10 @@ function CustomerDetail({ customerId }) {
{customer.name}
{customer.espocrm_url}
-