mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
active tab in app title
This commit is contained in:
parent
bb3c17d6d5
commit
94351805d3
@ -1,8 +1,9 @@
|
||||
<script lang="ts">
|
||||
import { currentDatabase } from '../stores';
|
||||
import { activeTab, currentDatabase } from '../stores';
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user