]> git.localhorst.tv Git - alttp.git/commitdiff
hide lock warning for open rounds
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 19 Oct 2022 13:46:47 +0000 (15:46 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 19 Oct 2022 13:46:47 +0000 (15:46 +0200)
resources/js/components/rounds/LockDialog.js

index 690e85c71d5c9dfd3c97bf84031541a611616b4c..6174dbf9f8474ccfeea999e5202363079f10deae 100644 (file)
@@ -25,7 +25,7 @@ const LockDialog = ({
                        ? 'rounds.unlockDescription'
                        : 'rounds.lockDescription')}
                </p>
-       {!round.locked && !isComplete(tournament, round) ?
+       {!round.locked && tournament.type === 'signup-async' && !isComplete(tournament, round) ?
                <Alert variant="warning">
                        {i18n.t('rounds.lockIncompleteWarning')}
                </Alert>
@@ -72,6 +72,7 @@ LockDialog.propTypes = {
        }),
        show: PropTypes.bool,
        tournament: PropTypes.shape({
+               type: PropTypes.string,
        }),
 };