diff --git a/app/components/QuestTags.vue b/app/components/QuestTags.vue index 10b1c6e..2834e01 100644 --- a/app/components/QuestTags.vue +++ b/app/components/QuestTags.vue @@ -22,7 +22,11 @@ const { tKey } = useI18nKey(); {{ quest.pictureRequired ? '📸' : '📷' }} {{ quest.textRequired ? '❓' : '❔' }} {{ tKey(quest, 'title') }} - {{ quest.answer?.review?.score || 0 }} / {{ quest.points }}{{ quest.extraPoints ? `+${quest.extraPoints}` : '' }} diff --git a/app/lang/de.json b/app/lang/de.json index a794cad..337f44e 100644 --- a/app/lang/de.json +++ b/app/lang/de.json @@ -137,7 +137,9 @@ "quest_soon_reveal": "Bald werden alle {count} Quests aufgedeckt!", "invite_toast_title": "Einladungscode", "invite_toast_message": "Einladungscode wurde in deine Zwischenablage kopiert! Teile ihn mit deinen neuen Teammitgliedern.", - "invite_toast_text": "Trete dem Team {team} mit dem Code \"{code}\" im Hunt \"{hunt}\" bei!" + "invite_toast_text": "Trete dem Team {team} mit dem Code \"{code}\" im Hunt \"{hunt}\" bei!", + "open_answer": "Öffnen und beantworten", + "open_finalize": "Öffnen und finalisieren" }, "help": { "title": "Hilfe", diff --git a/app/lang/en.json b/app/lang/en.json index 0da698c..1a26083 100644 --- a/app/lang/en.json +++ b/app/lang/en.json @@ -137,7 +137,9 @@ "quest_soon_reveal": "Soon all {count} quests will be revealed!", "invite_toast_title": "Invite code", "invite_toast_message": "Invite code was copied to your clipboard! Share it with your next team mates.", - "invite_toast_text": "Join team {team} with code \"{code}\" on hunt \"{hunt}\"!" + "invite_toast_text": "Join team {team} with code \"{code}\" on hunt \"{hunt}\"!", + "open_answer": "Open and answer", + "open_finalize": "Open and finalize" }, "help": { "title": "Help", diff --git a/app/pages/hunt/[huntSlug]/index.vue b/app/pages/hunt/[huntSlug]/index.vue index edd231b..52afa71 100644 --- a/app/pages/hunt/[huntSlug]/index.vue +++ b/app/pages/hunt/[huntSlug]/index.vue @@ -206,6 +206,14 @@ ${document.location.href}` ? 'warning' : 'primary' " + :color=" + (quest.answer?.review?.score && quest.answer?.review?.score > 0) || + quest.answer?.final + ? 'success' + : !!quest.answer + ? 'warning' + : undefined + " > - -

{{ tKey(quest, 'description') }}

+ +

+ {{ tKey(quest, 'description').value.split('\n')[0] }} +

@@ -236,7 +255,13 @@ ${document.location.href}` color="primary" icon="rate_review" class="flex-grow" - >{{ t('page.common.open') }}{{ + t( + !!quest.answer && !quest.answer.final + ? 'page.hunt.open_finalize' + : 'page.hunt.open_answer' + ) + }}