diff options
| author | Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> | 2024-02-15 02:32:58 +0000 |
|---|---|---|
| committer | Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> | 2024-02-20 21:33:41 +0000 |
| commit | 35f6f041c1e800a8df9c222a17c00663ad3c9090 (patch) | |
| tree | a53d23151458a140f9eb76f728eb5c5c552370fe /frontend/src/components/DeckyToaster.tsx | |
| parent | 7e3f9edacf6a96e821a7e1850b598b6e303fae1c (diff) | |
| download | decky-loader-35f6f041c1e800a8df9c222a17c00663ad3c9090.tar.gz decky-loader-35f6f041c1e800a8df9c222a17c00663ad3c9090.zip | |
Testing PRs from within decky (#496)
* git no work so manually uploading files :(
* argh i wish git was working
* ok next time i'll make git work
* Update updater.py
* git please work next time this took ages without you
* fix me locales
* Update updater.py
* Update en-US.json
* Update updater.py
* Update updater.py
* i wish my python LSP stuff was working
* fix it
* Update updater.py
* Update updater.py
* Only show testing branch as an option if it is already selected
* Initial implementation for fetching the open PRs. Still need testing and a token to complete this.
* Wrong filter capitalization
* Fix a couple of typos in the python backend updater.
* Fix typos pt 3
* This should be the last one
* Prepend the PR version number with PR- to make it clearer that's the PR number.
* Update prettier to the latest version otherwise it will never be happy with the formatting.
* fix merge mistake
* fix pyright errors & type hint most new code
* fix strict pyright errors...
* not sure why my local linter didn't catch this
* Reimplement the logic between PR and artifact build to limit API calls
* Fix pyright errors
* use nightly.link for downloads
* remove accidental dollar sign
* fix various logical errors. the code actually works now.
* set branch to testing when user downloads a testing version
---------
Co-authored-by: Marco Rodolfi <marco.rodolfi@tuta.io>
Diffstat (limited to 'frontend/src/components/DeckyToaster.tsx')
| -rw-r--r-- | frontend/src/components/DeckyToaster.tsx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/frontend/src/components/DeckyToaster.tsx b/frontend/src/components/DeckyToaster.tsx index eaee75eb..6faece09 100644 --- a/frontend/src/components/DeckyToaster.tsx +++ b/frontend/src/components/DeckyToaster.tsx @@ -30,11 +30,14 @@ const DeckyToaster: FC<DeckyToasterProps> = () => { // not actually node but TS is shit let interval: NodeJS.Timer | null; if (renderedToast) { - interval = setTimeout(() => { - interval = null; - console.log('clear toast', renderedToast.data); - removeToast(renderedToast.data); - }, (renderedToast.data.duration || 5e3) + 1000); + interval = setTimeout( + () => { + interval = null; + console.log('clear toast', renderedToast.data); + removeToast(renderedToast.data); + }, + (renderedToast.data.duration || 5e3) + 1000, + ); console.log('set int', interval); } return () => { |
