X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Fprotocol%2FItem.js;h=74bfa50039cf82ab62c3395d2e2683d2ec1072df;hb=1c91e5dcedd930bea5fe44ea95a77a9ecd0177a4;hp=3337d04621cbd4ae7380c2f0fb880e7ee8535145;hpb=96f21488ed9c9572e2f00147a1713e24cc77c543;p=alttp.git
diff --git a/resources/js/components/protocol/Item.js b/resources/js/components/protocol/Item.js
index 3337d04..74bfa50 100644
--- a/resources/js/components/protocol/Item.js
+++ b/resources/js/components/protocol/Item.js
@@ -16,6 +16,9 @@ const getEntryDate = entry => {
: dateStr;
};
+const getEntryRoundNumber = entry =>
+ (entry && entry.details && entry.details.round && entry.details.round.number) || '?';
+
const getEntryResultTime = entry => {
if (!entry || !entry.details || !entry.details.result) return 'ERROR';
const result = entry.details.result;
@@ -33,6 +36,15 @@ const getEntryDescription = entry => {
}
case 'round.create':
case 'round.lock':
+ case 'round.unlock':
+ return i18n.t(
+ `protocol.description.${entry.type}`,
+ {
+ ...entry,
+ number: getEntryRoundNumber(entry),
+ },
+ );
+ case 'result.comment':
case 'tournament.lock':
return i18n.t(
`protocol.description.${entry.type}`,
@@ -45,6 +57,15 @@ const getEntryDescription = entry => {
const getEntryIcon = entry => {
switch (entry.type) {
+ case 'result.report':
+ return ;
+ case 'round.create':
+ return ;
+ case 'round.lock':
+ case 'tournament.lock':
+ return ;
+ case 'round.unlock':
+ return ;
default:
return ;
}