mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-23 01:06:01 +00:00
auto close snackbar
This commit is contained in:
@@ -18,6 +18,7 @@ export function initializeAppUpdates() {
|
||||
onClick: () => {
|
||||
electron.send('downloadUpdate');
|
||||
},
|
||||
autoClose: true,
|
||||
},
|
||||
],
|
||||
});
|
||||
@@ -37,6 +38,7 @@ export function initializeAppUpdates() {
|
||||
onClick: () => {
|
||||
electron.send('applyUpdate');
|
||||
},
|
||||
autoClose: true,
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
@@ -3,6 +3,7 @@ import { openedSnackbars } from '../stores';
|
||||
export interface SnackbarButton {
|
||||
label: string;
|
||||
onClick: Function;
|
||||
autoClose?: boolean;
|
||||
}
|
||||
|
||||
export interface SnackbarInfo {
|
||||
|
||||
Reference in New Issue
Block a user