]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/rounds/Item.js
show number of results for open asyncs
[alttp.git] / resources / js / components / rounds / Item.js
index 3197f6d9aa64da0a8df2c68a02b7f1a522deae7b..817069f98dc1fb7552188ed0cbfcb80a9d326dcd 100644 (file)
@@ -73,6 +73,9 @@ const Item = ({
                                        />
                                </p>
                        : null}
+                       {tournament.type === 'open-async' && round.results && round.results.length ?
+                               <p>{i18n.t('rounds.numberOfResults', { count: round.results.length })}</p>
+                       : null}
                        <div className="button-bar">
                                <LockButton round={round} tournament={tournament} />
                                {mayEditRound(user, tournament, round) ?
@@ -91,12 +94,15 @@ Item.propTypes = {
                game: PropTypes.string,
                locked: PropTypes.bool,
                number: PropTypes.number,
+               results: PropTypes.arrayOf(PropTypes.shape({
+               })),
                seed: PropTypes.string,
                title: PropTypes.string,
        }),
        tournament: PropTypes.shape({
                participants: PropTypes.arrayOf(PropTypes.shape({
                })),
+               type: PropTypes.string,
        }),
        user: PropTypes.shape({
        }),