mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 01:03:58 +00:00
texts
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
export let conid;
|
export let conid;
|
||||||
export let database;
|
export let database;
|
||||||
export let header;
|
export let header;
|
||||||
|
export let text;
|
||||||
|
|
||||||
const initialColor = useConnectionColor({ conid, database }, null, null, false, false);
|
const initialColor = useConnectionColor({ conid, database }, null, null, false, false);
|
||||||
|
|
||||||
@@ -16,6 +17,10 @@
|
|||||||
<ModalBase {...$$restProps}>
|
<ModalBase {...$$restProps}>
|
||||||
<svelte:fragment slot="header">{header}</svelte:fragment>
|
<svelte:fragment slot="header">{header}</svelte:fragment>
|
||||||
|
|
||||||
|
<div class="m-2">
|
||||||
|
{text}
|
||||||
|
</div>
|
||||||
|
|
||||||
<ColorSelector
|
<ColorSelector
|
||||||
{value}
|
{value}
|
||||||
on:change={e => {
|
on:change={e => {
|
||||||
|
|||||||
@@ -81,7 +81,11 @@
|
|||||||
class="item clickable"
|
class="item clickable"
|
||||||
title="Database color. Overrides connection color"
|
title="Database color. Overrides connection color"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
showModal(ChooseConnectionColorModal, { ...dbid, header: 'Choose database color' });
|
showModal(ChooseConnectionColorModal, {
|
||||||
|
...dbid,
|
||||||
|
header: 'Choose database color',
|
||||||
|
text: 'This color override connection color for specific database.',
|
||||||
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div style={$databaseButtonBackground} class="colorbox">
|
<div style={$databaseButtonBackground} class="colorbox">
|
||||||
@@ -100,7 +104,11 @@
|
|||||||
class="item clickable"
|
class="item clickable"
|
||||||
title="Connection color. Can be overriden by database color"
|
title="Connection color. Can be overriden by database color"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
showModal(ChooseConnectionColorModal, { conid: dbid.conid, header: 'Choose connection color' });
|
showModal(ChooseConnectionColorModal, {
|
||||||
|
conid: dbid.conid,
|
||||||
|
header: 'Choose connection color',
|
||||||
|
text: 'This color serves as default color for all databases in this connection.',
|
||||||
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div style={$connectionButtonBackground} class="colorbox">
|
<div style={$connectionButtonBackground} class="colorbox">
|
||||||
|
|||||||
Reference in New Issue
Block a user