app title

This commit is contained in:
Jan Prochazka
2024-09-03 09:45:44 +02:00
parent 416ed14a9d
commit 906ed3d237
3 changed files with 13 additions and 4 deletions

View File

@@ -2,8 +2,11 @@
import { activeTab, currentDatabase } from '../stores';
import getElectron from './getElectron';
import _ from 'lodash';
import { isProApp } from './proTools';
$: title = _.compact([$activeTab?.title, $currentDatabase?.name, 'DbGate']).join(' - ');
$: title = _.compact([$activeTab?.title, $currentDatabase?.name, isProApp() ? 'DbGate Premium' : 'DbGate']).join(
' - '
);
$: {
const electron = getElectron();