]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/aos/Seed.js
new aosr settings
[alttp.git] / resources / js / components / aos / Seed.js
index 3e6ac4af4e11bce9575ac8221fa0610016beb9af..513bdd380bddcd3a3588aaddc2494f275f3fd0f8 100644 (file)
@@ -46,10 +46,14 @@ const isDefaultSetting = (name, value) => {
                        return value === 'false';
                case 'nodupes':
                        return value === 'false';
+               case 'noww':
+                       return value === 'false';
                case 'palette':
                        return value === 'Vanilla';
                case 'panther':
                        return value === 'Rand70Dup';
+               case 'reqallsouls':
+                       return value === 'false';
                case 'shopprice':
                        return value === 'Vanilla';
                case 'shopSouls':
@@ -65,7 +69,7 @@ const isDefaultSetting = (name, value) => {
        }
 };
 
-const Seed = ({ patch, seed }) => {
+const Seed = ({ onRetry, patch, seed }) => {
        const { rom } = useAosBaseRom();
 
        return <Container>
@@ -125,6 +129,16 @@ const Seed = ({ patch, seed }) => {
                                                <strong>{i18n.t(`aosSeeds.statuses.${seed.status}`)}</strong>
                                        </p>
                                }
+                               {seed.status === 'error' ?
+                                       <p>
+                                               <Button
+                                                       onClick={onRetry}
+                                                       variant="secondary"
+                                               >
+                                                       {i18n.t('button.retry')}
+                                               </Button>
+                                       </p>
+                               : null}
                        </Col>
                </Row>
                <h2 className="mt-5">{i18n.t('aosSeeds.generator')}</h2>
@@ -151,6 +165,7 @@ const Seed = ({ patch, seed }) => {
 };
 
 Seed.propTypes = {
+       onRetry: PropTypes.func,
        patch: PropTypes.instanceOf(ArrayBuffer),
        seed: PropTypes.shape({
                generator: PropTypes.string,