diff --git a/dashboard/src/App.jsx b/dashboard/src/App.jsx index 2344d4d..d148bc2 100644 --- a/dashboard/src/App.jsx +++ b/dashboard/src/App.jsx @@ -161,6 +161,11 @@ function CustomerDetail({ customerId }) { setDeploying(null) } + const remove = async (extId) => { + await fetch(`${API}/customers/${customerId}/extensions/${extId}`, { method: 'DELETE' }) + reload() + } + const assign = async (extId) => { await fetch(`${API}/customers/${customerId}/extensions`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, @@ -180,27 +185,61 @@ function CustomerDetail({ customerId }) { )} -
| שם ההרחבה | +מותקנת | +עדכון זמין | +פעולות | +
|---|---|---|---|
| {e.name} | +
+ {installed
+ ? |
+ + {hasUpdate + ? v{e.latest_version} + : —} + | +
+
+ {!installed ? (
+
+ ) : (
+ <>
+
+
+ >
+ )}
+
+ |
+