mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 20:06:00 +00:00
active tab in app title
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user