diff options
| author | AAGaming <aagaming@riseup.net> | 2024-07-28 18:19:55 -0400 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2024-08-03 14:04:20 -0400 |
| commit | 4cf80595ad61107a4edb2041e63983329f23ccb7 (patch) | |
| tree | f6353008999c12f0ee49e3647a54c47275c79c73 /frontend/src/components/settings | |
| parent | 4c23549748e71c061ea2fc1f8fa9262f15018cfc (diff) | |
| download | decky-loader-4cf80595ad61107a4edb2041e63983329f23ccb7.tar.gz decky-loader-4cf80595ad61107a4edb2041e63983329f23ccb7.zip | |
feat(toaster):add support for dismissing toasts and new indicator
Diffstat (limited to 'frontend/src/components/settings')
| -rw-r--r-- | frontend/src/components/settings/pages/testing/index.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/src/components/settings/pages/testing/index.tsx b/frontend/src/components/settings/pages/testing/index.tsx index 6f52afe3..8f02c207 100644 --- a/frontend/src/components/settings/pages/testing/index.tsx +++ b/frontend/src/components/settings/pages/testing/index.tsx @@ -91,13 +91,14 @@ export default function TestingVersionList() { <DialogButton style={{ height: '40px', minWidth: '60px', marginRight: '10px' }} onClick={async () => { - DeckyPluginLoader.toaster.toast({ + const downloadToast = DeckyPluginLoader.toaster.toast({ title: t('Testing.start_download_toast', { id: version.id }), body: null, icon: <FaFlask />, }); try { await downloadTestingVersion(version.id, version.head_sha); + downloadToast.dismiss(); } catch (e) { if (e instanceof Error) { DeckyPluginLoader.toaster.toast({ |
