]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/protocol/Item.js
round titles
[alttp.git] / resources / js / components / protocol / Item.js
index 18b04cc7d6b96f5f5408f0af2d1e5cd6407038e2..00da2ef472c27afb8b8be1c55de2c9cd9e361e0a 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':
@@ -74,7 +79,11 @@ const getEntryDescription = entry => {
                                        number: getEntryRoundNumber(entry),
                                },
                        );
+               case 'tournament.close':
+               case 'tournament.discord':
                case 'tournament.lock':
+               case 'tournament.open':
+               case 'tournament.unlock':
                        return i18n.t(
                                `protocol.description.${entry.type}`,
                                entry,
@@ -91,10 +100,15 @@ const getEntryIcon = entry => {
                case 'round.create':
                        return <Icon.ADD />;
                case 'round.lock':
+               case 'tournament.close':
                case 'tournament.lock':
                        return <Icon.LOCKED />;
                case 'round.unlock':
+               case 'tournament.open':
+               case 'tournament.unlock':
                        return <Icon.UNLOCKED />;
+               case 'tournament.discord':
+                       return <Icon.DISCORD />;
                default:
                        return <Icon.PROTOCOL />;
        }