]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/protocol/Item.js
tournament admin control
[alttp.git] / resources / js / components / protocol / Item.js
index 18b04cc7d6b96f5f5408f0af2d1e5cd6407038e2..3ccefbfe5d6f47ac5804708739f59b1f7c50b02c 100644 (file)
@@ -74,7 +74,10 @@ const getEntryDescription = entry => {
                                        number: getEntryRoundNumber(entry),
                                },
                        );
+               case 'tournament.close':
                case 'tournament.lock':
+               case 'tournament.open':
+               case 'tournament.unlock':
                        return i18n.t(
                                `protocol.description.${entry.type}`,
                                entry,
@@ -91,9 +94,12 @@ 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 />;
                default:
                        return <Icon.PROTOCOL />;