handle readonly connection

This commit is contained in:
Jan Prochazka
2024-08-27 10:49:03 +02:00
parent 8367cc4b59
commit 93f64a6bab
3 changed files with 6 additions and 4 deletions

View File

@@ -272,7 +272,8 @@
),
],
driver?.databaseEngineTypes?.includes('sql') && { onClick: handleSqlRestore, text: 'Restore/import SQL dump' },
driver?.databaseEngineTypes?.includes('sql') &&
!data.isReadOnly && { onClick: handleSqlRestore, text: 'Restore/import SQL dump' },
];
};