mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 04:16:00 +00:00
hide results tab when no result
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
$: allTabs = [
|
||||
...tabs,
|
||||
|
||||
...(oneTab
|
||||
...(oneTab && resultInfos.length > 0
|
||||
? [
|
||||
{
|
||||
label: 'Results',
|
||||
@@ -84,7 +84,7 @@
|
||||
<TabControl
|
||||
bind:this={domTabs}
|
||||
tabs={allTabs}
|
||||
menu={[
|
||||
menu={resultInfos.length > 0 && [
|
||||
oneTab
|
||||
? { text: 'Every result in single tab', onClick: () => setOneTabValue(false) }
|
||||
: { text: 'All results in one tab', onClick: () => setOneTabValue(true) },
|
||||
|
||||
Reference in New Issue
Block a user