mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 13:36:02 +00:00
SYNC: Merge pull request #14 from dbgate/ai-sql
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
export let square = false;
|
||||
export let narrow = false;
|
||||
export let title = null;
|
||||
export let inlineBlock=false;
|
||||
|
||||
let domButton;
|
||||
|
||||
@@ -17,6 +18,7 @@
|
||||
class:disabled
|
||||
class:square
|
||||
class:narrow
|
||||
class:inlineBlock
|
||||
on:click
|
||||
bind:this={domButton}
|
||||
data-testid={$$props['data-testid']}
|
||||
@@ -71,4 +73,8 @@
|
||||
.square {
|
||||
width: 18px;
|
||||
}
|
||||
|
||||
.inlineBlock {
|
||||
display: inline-block;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
|
||||
const thisInstance = get_current_component();
|
||||
|
||||
export const activator = createActivator('ToolStripContainer', true);
|
||||
export let showAlways = false;
|
||||
export const activator = showAlways ? null : createActivator('ToolStripContainer', true);
|
||||
|
||||
export function activate() {
|
||||
activator?.activate();
|
||||
@@ -13,7 +14,7 @@
|
||||
export let scrollContent = false;
|
||||
export let hideToolStrip = false;
|
||||
|
||||
$: isComponentActive = $isComponentActiveStore('ToolStripContainer', thisInstance) && !hideToolStrip;
|
||||
$: isComponentActive = showAlways || ($isComponentActiveStore('ToolStripContainer', thisInstance) && !hideToolStrip);
|
||||
</script>
|
||||
|
||||
<div class="wrapper">
|
||||
|
||||
Reference in New Issue
Block a user