SYNC: data deployer menu conditions

This commit is contained in:
SPRINX0\prochazka
2025-04-29 12:55:01 +02:00
committed by Diflow
parent 5675acb71a
commit 416d6f2aef

View File

@@ -164,12 +164,11 @@ await dbgateApi.deployDb(${JSON.stringify(
return [ return [
data.name != 'default' && { text: 'Delete', onClick: handleDelete }, data.name != 'default' && { text: 'Delete', onClick: handleDelete },
data.name != 'default' && { text: 'Rename', onClick: handleRename }, data.name != 'default' && { text: 'Rename', onClick: handleRename },
data.name != 'default' && isProApp() && { text: 'Data deployer', onClick: handleOpenDataDeployTab },
$currentDatabase && [ $currentDatabase && [
isProApp() && { text: 'Data deployer', onClick: handleOpenDataDeployTab }, { text: 'Generate deploy DB SQL', onClick: handleGenerateDeploySql },
{ text: 'Generate deploy DB SQL', onClick: handleGenerateDeploySql }, { text: 'Shell: Deploy DB', onClick: handleGenerateDeployScript },
{ text: 'Shell: Deploy DB', onClick: handleGenerateDeployScript }, ],
],
data.name != 'default' && data.name != 'default' &&
isProApp() && isProApp() &&
data.name.endsWith('.zip') && { text: 'Unpack ZIP', onClick: () => handleZipUnzip('archive/unzip') }, data.name.endsWith('.zip') && { text: 'Unpack ZIP', onClick: () => handleZipUnzip('archive/unzip') },