mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-02 06:43:59 +00:00
search GUI improved
This commit is contained in:
@@ -82,7 +82,7 @@
|
|||||||
submenuOffset = hoverOffset;
|
submenuOffset = hoverOffset;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (item.switchStore) {
|
if (item.switchStore && item.switchValue) {
|
||||||
item.switchStore.update(x => ({
|
item.switchStore.update(x => ({
|
||||||
...x,
|
...x,
|
||||||
[item.switchValue]: !x[item.switchValue],
|
[item.switchValue]: !x[item.switchValue],
|
||||||
@@ -142,12 +142,12 @@
|
|||||||
>
|
>
|
||||||
<a on:click={e => handleClick(e, item)} class:disabled={item.disabled} class:bold={item.isBold}>
|
<a on:click={e => handleClick(e, item)} class:disabled={item.disabled} class:bold={item.isBold}>
|
||||||
<span>
|
<span>
|
||||||
{#if item.switchStoreGetter}
|
{#if item.switchValue && item.switchStoreGetter}
|
||||||
{#key switchIndex}
|
{#key switchIndex}
|
||||||
{#if item.switchStoreGetter()[item.switchValue]}
|
{#if item.switchStoreGetter()[item.switchValue]}
|
||||||
<FontIcon icon="icon checkbox-marked" padRight />
|
<FontIcon icon="icon check" padRight />
|
||||||
{:else}
|
{:else}
|
||||||
<FontIcon icon="icon checkbox-blank" padRight />
|
<FontIcon icon="icon invisible-box" padRight />
|
||||||
{/if}
|
{/if}
|
||||||
{/key}
|
{/key}
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@@ -188,6 +188,7 @@
|
|||||||
|
|
||||||
function createSearchMenu() {
|
function createSearchMenu() {
|
||||||
const res = [];
|
const res = [];
|
||||||
|
res.push({ label: 'Search by:', isBold: true, disabled: true });
|
||||||
res.push({ label: 'Display name', switchValue: 'displayName' });
|
res.push({ label: 'Display name', switchValue: 'displayName' });
|
||||||
res.push({ label: 'Server', switchValue: 'server' });
|
res.push({ label: 'Server', switchValue: 'server' });
|
||||||
res.push({ label: 'User', switchValue: 'user' });
|
res.push({ label: 'User', switchValue: 'user' });
|
||||||
|
|||||||
@@ -129,6 +129,7 @@
|
|||||||
|
|
||||||
function createSearchMenu() {
|
function createSearchMenu() {
|
||||||
const res = [];
|
const res = [];
|
||||||
|
res.push({ label: 'Search by:', isBold: true, disabled: true });
|
||||||
if (driver?.databaseEngineTypes?.includes('document')) {
|
if (driver?.databaseEngineTypes?.includes('document')) {
|
||||||
res.push({ label: 'Collection names', switchValue: 'collectionName' });
|
res.push({ label: 'Collection names', switchValue: 'collectionName' });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user