mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 13:36:02 +00:00
update status with icon
This commit is contained in:
@@ -140,6 +140,7 @@
|
||||
'icon custom-join': 'mdi mdi-arrow-left-right-bold',
|
||||
'icon parent-filter': 'mdi mdi-home-alert',
|
||||
'icon parent-filter-outline': 'mdi mdi-home-alert-outline',
|
||||
'icon download': 'mdi mdi-download',
|
||||
|
||||
'icon run': 'mdi mdi-play',
|
||||
'icon chevron-down': 'mdi mdi-chevron-down',
|
||||
|
||||
@@ -123,7 +123,7 @@ export const commandsCustomized = derived([commands, commandsSettings], ([$comma
|
||||
...$commandsSettings[k],
|
||||
}))
|
||||
);
|
||||
export const appUpdateStatus = writable('');
|
||||
export const appUpdateStatus = writable(null);
|
||||
export const appUpdaterActive = writable(false);
|
||||
|
||||
export const draggingTab = writable(null);
|
||||
@@ -310,4 +310,4 @@ let appUpdaterActiveValue = false;
|
||||
appUpdaterActive.subscribe(value => {
|
||||
appUpdaterActiveValue = value;
|
||||
});
|
||||
export const getAppUpdaterActive = () => appUpdaterActiveValue;
|
||||
export const getAppUpdaterActive = () => appUpdaterActiveValue;
|
||||
|
||||
@@ -25,8 +25,8 @@ export function initializeAppUpdates() {
|
||||
});
|
||||
});
|
||||
|
||||
electron.addEventListener('app-update-status', (e, text) => {
|
||||
appUpdateStatus.set(text);
|
||||
electron.addEventListener('app-update-status', (e, value) => {
|
||||
appUpdateStatus.set(value);
|
||||
});
|
||||
|
||||
electron.addEventListener('downloaded-new-version', (e, version) => {
|
||||
|
||||
@@ -173,7 +173,8 @@
|
||||
|
||||
{#if $appUpdateStatus}
|
||||
<div class="item">
|
||||
{$appUpdateStatus}
|
||||
<FontIcon icon={$appUpdateStatus.icon} padRight />
|
||||
{$appUpdateStatus.message}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user