active tab in app title

This commit is contained in:
Jan Prochazka 2022-01-30 10:07:22 +01:00
parent bb3c17d6d5
commit 94351805d3

View File

@ -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();