]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/protocol/Item.js
option to hide round numbers
[alttp.git] / resources / js / components / protocol / Item.js
index 3ccefbfe5d6f47ac5804708739f59b1f7c50b02c..7dba2a3bed06c7aeacb0ccae6db90efd7415e3f1 100644 (file)
@@ -53,17 +53,22 @@ const getEntryDescription = entry => {
                        );
                case 'result.comment': {
                        const comment = getEntryResultComment(entry);
+                       const number = getEntryRoundNumber(entry);
                        return <Trans i18nKey={`protocol.description.${entry.type}`}>
+                               {{number}}
                                <Spoiler>{{comment}}</Spoiler>,
                        </Trans>;
                }
                case 'result.report': {
+                       const number = getEntryRoundNumber(entry);
                        const time = getEntryResultTime(entry);
                        return <Trans i18nKey={`protocol.description.${entry.type}`}>
+                               {{number}}
                                <Spoiler>{{time}}</Spoiler>,
                        </Trans>;
                }
                case 'round.create':
+               case 'round.edit':
                case 'round.lock':
                case 'round.seed':
                case 'round.unlock':
@@ -75,8 +80,10 @@ const getEntryDescription = entry => {
                                },
                        );
                case 'tournament.close':
+               case 'tournament.discord':
                case 'tournament.lock':
                case 'tournament.open':
+               case 'tournament.settings':
                case 'tournament.unlock':
                        return i18n.t(
                                `protocol.description.${entry.type}`,
@@ -101,6 +108,8 @@ const getEntryIcon = entry => {
                case 'tournament.open':
                case 'tournament.unlock':
                        return <Icon.UNLOCKED />;
+               case 'tournament.discord':
+                       return <Icon.DISCORD />;
                default:
                        return <Icon.PROTOCOL />;
        }