@@ -10,9 +10,10 @@ import ProjectHeader from '@/components/ProjectHeader.vue'
1010import TileMap from ' @/components/TileMap.vue'
1111import createInformationPages from ' @/utils/createInformationPages' ;
1212import { createFallbackInformationPages } from ' @/utils/domain' ;
13- import FindProjectTutorial from ' ./FindProjectTutorial.vue' ;
1413import ProjectInfo from ' ./ProjectInfo.vue' ;
1514import FindProjectInstructions from ' ./FindProjectInstructions.vue' ;
15+ import { useI18n } from ' vue-i18n' ;
16+ import CompletenessProjectTutorial from ' ./CompletenessProjectTutorial.vue' ;
1617
1718interface Props {
1819 group: TaskGroup ;
@@ -31,6 +32,7 @@ const saveResults = inject<(results: Record<string, number>, startTime: string)
3132// const showSnackbar = inject<() => void>('showSnackbar');
3233
3334const emit = defineEmits <{ created: []}>();
35+ const { t } = useI18n ();
3436
3537const ROWS_PER_PAGE = 3 ;
3638
@@ -55,6 +57,10 @@ const selectedTasks = ref<Record<string, boolean>>({});
5557const debounceTimeoutRef = shallowRef ();
5658const startTime = shallowRef <string >();
5759
60+ const instruction = computed (
61+ () => t (' projectView.youAreLookingFor' , { lookFor: props .project .lookFor })
62+ );
63+
5864const numSelectedTasks = computed (() => Object .values (selectedTasks .value ).filter (Boolean ).length );
5965
6066const processedTasks = computed (() => {
@@ -273,7 +279,7 @@ const attribution = computed(() => ([
273279
274280<template >
275281 <project-header
276- :mission =" $t('projectView.youAreLookingFor', { lookFor: props.project.lookFor }) "
282+ :mission =" instruction "
277283 :title =" props.project.projectTopic"
278284 >
279285 <v-chip v-if =" numSelectedTasks > 0" color =" primary" :ripple =" false" >
@@ -299,12 +305,12 @@ const attribution = computed(() => ([
299305 <FindProjectInstructions
300306 :attribution =" attribution"
301307 :exampleTileUrls =" [currentTasks[0]?.url, currentTasks[0]?.urlB]"
302- :mission =" $t('projectView.youAreLookingFor', { lookFor: props.project.lookFor }) "
308+ :mission =" instruction "
303309 :options =" options"
304310 />
305311 </template >
306312 <template #tutorial >
307- <FindProjectTutorial
313+ <CompletenessProjectTutorial
308314 :tutorial =" props.tutorial"
309315 :tasks =" props.tutorialTasks"
310316 :options =" options"
@@ -318,7 +324,7 @@ const attribution = computed(() => ([
318324 class =" container"
319325 v-touch =" { left: () => handleFastForward(), right: () => handleFastBack() }"
320326 >
321- <base-map
327+ <BaseMap
322328 v-if =" isDefined(geoJson) && isDefined(overlayTileServer)"
323329 :geo-json =" geoJson"
324330 :tile-size =" tileSize"
0 commit comments