From 9aaee609cb3fd742c70820715ca906a1a2fd7f8d Mon Sep 17 00:00:00 2001 From: Chaim Date: Mon, 6 Apr 2026 07:17:59 +0000 Subject: [PATCH] fix: hide deploy button for extensions without a published version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Extensions like LegalAssistance that are in the registry but haven't been published yet (latest_version is null) now show "אין גרסה" instead of a deploy button. Batch deploy also skips them. Co-Authored-By: Claude Opus 4.6 (1M context) --- dashboard/src/App.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dashboard/src/App.jsx b/dashboard/src/App.jsx index 85ea2ae..7ecaf52 100644 --- a/dashboard/src/App.jsx +++ b/dashboard/src/App.jsx @@ -328,7 +328,7 @@ function CustomerDetail({ customerId, onDelete }) { } const batchDeploy = async () => { - const toDeploy = sorted.filter(e => selected.has(e.id) && !e.installed_version) + const toDeploy = sorted.filter(e => selected.has(e.id) && !e.installed_version && e.latest_version) setBatchDeploying(true) setBatchProgress({ current: 0, total: toDeploy.length, module: '' }) const results = [] @@ -495,6 +495,8 @@ function CustomerDetail({ customerId, onDelete }) {
{blocked ? ( + ) : !installed && !e.latest_version ? ( + אין גרסה ) : !installed ? (