Show Data/Structure button in one place #1015

This commit is contained in:
SPRINX0\prochazka
2025-01-27 10:40:38 +01:00
parent e0cf8026ef
commit a68a81b339
5 changed files with 107 additions and 96 deletions

View File

@@ -170,16 +170,9 @@
: null}
/>
<svelte:fragment slot="toolstrip">
<ToolStripCommandButton
command="tableStructure.save"
buttonLabel={$editorValue?.base ? 'Alter table' : 'Create table'}
/>
<ToolStripCommandButton command="tableStructure.reset" />
<ToolStripCommandButton command="tableEditor.addColumn" />
<ToolStripCommandButton command="tableEditor.addIndex" hideDisabled />
<ToolStripButton
icon={'icon table'}
iconAfter="icon arrow-link"
on:click={() => {
openNewTab({
title: pureName,
@@ -195,10 +188,12 @@
defaultActionId: 'openTable',
},
});
}}>Open data</ToolStripButton
}}>Data</ToolStripButton
>
<ToolStripButton
icon="img sql-file"
iconAfter="icon arrow-link"
on:click={() => {
openNewTab({
title: pureName,
@@ -214,7 +209,15 @@
defaultActionId: 'showSql',
},
});
}}>Show SQL</ToolStripButton
}}>SQL</ToolStripButton
>
<ToolStripCommandButton
command="tableStructure.save"
buttonLabel={$editorValue?.base ? 'Alter table' : 'Create table'}
/>
<ToolStripCommandButton command="tableStructure.reset" />
<ToolStripCommandButton command="tableEditor.addColumn" />
<ToolStripCommandButton command="tableEditor.addIndex" hideDisabled />
</svelte:fragment>
</ToolStripContainer>