This commit is contained in:
Jan Prochazka 2021-12-05 11:13:38 +01:00
parent 50dbb9d1bd
commit de7275c38b
2 changed files with 15 additions and 2 deletions

View File

@ -7,6 +7,7 @@
export let conid;
export let database;
export let header;
export let text;
const initialColor = useConnectionColor({ conid, database }, null, null, false, false);
@ -16,6 +17,10 @@
<ModalBase {...$$restProps}>
<svelte:fragment slot="header">{header}</svelte:fragment>
<div class="m-2">
{text}
</div>
<ColorSelector
{value}
on:change={e => {

View File

@ -81,7 +81,11 @@
class="item clickable"
title="Database color. Overrides connection color"
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">
@ -100,7 +104,11 @@
class="item clickable"
title="Connection color. Can be overriden by database color"
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">