X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=resources%2Fjs%2Fcomponents%2Fpages%2FAosSeed.js;h=ece8406ea69774b6f7965625f8e4decbe25d3e59;hb=55522c5c51edc11a4733d9bfe86e5640645a2f5f;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..ece8406 100644
--- a/resources/js/components/pages/AosSeed.js
+++ b/resources/js/components/pages/AosSeed.js
@@ -1,5 +1,6 @@
import axios from 'axios';
import React, { useCallback, useEffect, useState } from 'react';
+import { Helmet } from 'react-helmet';
import { useParams } from 'react-router-dom';
import NotFound from './NotFound';
@@ -24,7 +25,6 @@ const AosSeed = () => {
setError(null);
setLoading(false);
setSeed(response.data);
- window.document.title = response.data.hash;
})
.catch(error => {
setError(error);
@@ -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,12 @@ const AosSeed = () => {
}
return
-
+
+ {seed ?
+ {seed.hash}
+ : null}
+
+
;
};