Skip to content

Commit 3461152

Browse files
Merge pull request #5689 from christianbeeznest/ofaj-21888
Internal: Fix tool translations in course view - refs BT#21888
2 parents f83c8a0 + 5eb5d2e commit 3461152

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

assets/vue/components/course/CourseTool.vue

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
:url="tool.url"
2222
class="course-tool__title"
2323
>
24-
{{ tool.tool.titleToShow }}
24+
{{ $t(tool.tool.titleToShow) }}
2525
</BaseAppLink>
2626

2727
<div class="course-tool__options">
@@ -54,29 +54,22 @@
5454
size="small"
5555
/>
5656
</a>
57-
58-
<!-- a
59-
v-if="securityStore.isCurrentTeacher"
60-
:href="goToSettingCourseTool(tool)"
61-
>
62-
<BaseIcon
63-
icon="cog"
64-
size="lg"
65-
/>
66-
</a -->
6757
</div>
6858
</div>
6959
</template>
7060

7161
<script setup>
7262
import { computed, inject } from "vue"
63+
import { useI18n } from "vue-i18n"
7364
import BaseIcon from "../basecomponents/BaseIcon.vue"
7465
import { useSecurityStore } from "../../store/securityStore"
7566
import { usePlatformConfig } from "../../store/platformConfig"
7667
import { storeToRefs } from "pinia"
7768
import { useCidReqStore } from "../../store/cidReq"
7869
import BaseAppLink from "../basecomponents/BaseAppLink.vue"
7970
71+
const { t } = useI18n()
72+
8073
const securityStore = useSecurityStore()
8174
const platformConfigStore = usePlatformConfig()
8275
const cidReqStore = useCidReqStore()

0 commit comments

Comments
 (0)