mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 20:46:01 +00:00
SYNC: data deployer menu conditions
This commit is contained in:
committed by
Diflow
parent
5675acb71a
commit
416d6f2aef
@@ -164,9 +164,8 @@ 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' &&
|
|
||||||
$currentDatabase && [
|
|
||||||
isProApp() && { text: 'Data deployer', onClick: handleOpenDataDeployTab },
|
isProApp() && { text: 'Data deployer', onClick: handleOpenDataDeployTab },
|
||||||
|
$currentDatabase && [
|
||||||
{ 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 },
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user