This commit is contained in:
Jan Prochazka
2021-09-10 19:12:46 +02:00
parent 9f204bf187
commit 37c305461f

View File

@@ -112,6 +112,7 @@ registerCommand({
name: 'Table', name: 'Table',
toolbar: true, toolbar: true,
toolbarName: 'New table', toolbarName: 'New table',
testEnabled: () => !!get(currentDatabase),
onClick: () => { onClick: () => {
const $currentDatabase = get(currentDatabase); const $currentDatabase = get(currentDatabase);
const connection = _.get($currentDatabase, 'connection') || {}; const connection = _.get($currentDatabase, 'connection') || {};