mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-23 10:25:59 +00:00
active tab in app title
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { currentDatabase } from '../stores';
|
import { activeTab, currentDatabase } from '../stores';
|
||||||
import getElectron from './getElectron';
|
import getElectron from './getElectron';
|
||||||
|
import _ from 'lodash';
|
||||||
|
|
||||||
$: title = $currentDatabase?.name ? `${$currentDatabase?.name} - DbGate` : 'DbGate';
|
$: title = _.compact([$activeTab?.title, $currentDatabase?.name, 'DbGate']).join(' - ');
|
||||||
|
|
||||||
$: {
|
$: {
|
||||||
const electron = getElectron();
|
const electron = getElectron();
|
||||||
|
|||||||
Reference in New Issue
Block a user