Skip to content

Commit

Permalink
adding seperate list for levantified roar tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Zio-4 committed May 29, 2024
1 parent af8f3b8 commit 902f0b7
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/components/GameTabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,19 @@ const levanteTasks = [
'trog',
'survey',
'mefs',
];
const levantifiedRoarTasks = [
'vocab',
// Not yet implemented
// 'swr',
// 'swr-es',
// 'sre',
// 'sre-es',
// 'pa',
// 'pa-es',
];
const getTaskName = (taskId, taskName) => {
// Translate Levante task names. The task name is not the same as the taskId.
const taskIdLowercased = taskId.toLowerCase();
Expand All @@ -134,7 +145,10 @@ const getRoutePath = (taskId) => {
if (lowerCasedAndCamelizedTaskId === 'survey') {
return '/survey';
} else if (isLevante && levanteTasks.includes(lowerCasedAndCamelizedTaskId)) {
} else if (
levanteTasks.includes(lowerCasedAndCamelizedTaskId) ||
(isLevante && levantifiedRoarTasks.includes(lowerCasedAndCamelizedTaskId))
) {
return '/game/core-tasks/' + taskId;
} else {
return '/game/' + taskId;
Expand Down

0 comments on commit 902f0b7

Please sign in to comment.