X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=resources%2Fjs%2Fcomponents%2Fpages%2FAosSeed.js;h=165a2bedbea81e17a0576b53b6e761c578dc3e4d;hb=f1c8c3cc53a09d1c261875d2f482b6e19bc48a9a;hp=e3cfda8f93b6a8f3e6b754b6007691d1e0254eb3;hpb=ca90048a9fb2d8c3c65d81096ecd36bbf7c51ff5;p=alttp.git
diff --git a/resources/js/components/pages/AosSeed.js b/resources/js/components/pages/AosSeed.js
index e3cfda8..165a2be 100644
--- a/resources/js/components/pages/AosSeed.js
+++ b/resources/js/components/pages/AosSeed.js
@@ -78,6 +78,11 @@ const AosSeed = () => {
};
}, [hash, seed]);
+ const retry = useCallback(async () => {
+ await axios.post(`/api/aos-seed/${hash}/retry`);
+ setSeed(seed => ({ ...seed, status: 'pending' }));
+ });
+
if (loading) {
return ;
}
@@ -91,7 +96,7 @@ const AosSeed = () => {
}
return
-
+
;
};