mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
about modal (#244)
This commit is contained in:
@@ -62,6 +62,15 @@ function initGlobalAtoms(initOpts: GlobalInitOptions) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
const showAboutModalAtom = jotai.atom(false) as jotai.PrimitiveAtom<boolean>;
|
||||
try {
|
||||
getApi().onMenuItemAbout(() => {
|
||||
modalsModel.pushModal("AboutModal");
|
||||
});
|
||||
} catch (_) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
const clientAtom: jotai.Atom<Client> = jotai.atom((get) => {
|
||||
const clientId = get(clientIdAtom);
|
||||
if (clientId == null) {
|
||||
|
||||
Reference in New Issue
Block a user