fix(breadcrumbs): translations are now rendered
This commit is contained in:
@@ -59,7 +59,7 @@ onMounted(() => {
|
||||
const breadcrumbs = computed(() => {
|
||||
let crumbs = [
|
||||
{
|
||||
label: 'Submissions',
|
||||
label: __('Submissions'),
|
||||
route: { name: 'AssignmentSubmissionList' },
|
||||
},
|
||||
{
|
||||
|
||||
@@ -200,7 +200,7 @@ const assignmentTypes = computed(() => {
|
||||
|
||||
const breadcrumbs = computed(() => [
|
||||
{
|
||||
label: 'Assignments',
|
||||
label: __('Assignments'),
|
||||
route: { name: 'Assignments' },
|
||||
},
|
||||
])
|
||||
|
||||
@@ -59,7 +59,7 @@ const badge = createResource({
|
||||
const breadcrumbs = computed(() => {
|
||||
return [
|
||||
{
|
||||
label: 'Badges',
|
||||
label: __('Badges'),
|
||||
},
|
||||
{
|
||||
label: badge.data.badge,
|
||||
|
||||
@@ -330,10 +330,10 @@ const batch = createResource({
|
||||
})
|
||||
|
||||
const breadcrumbs = computed(() => {
|
||||
let crumbs = [{ label: 'Batches', route: { name: 'Batches' } }]
|
||||
let crumbs = [{ label: __('Batches'), route: { name: 'Batches' } }]
|
||||
if (!isStudent.value) {
|
||||
crumbs.push({
|
||||
label: 'Details',
|
||||
label: __('Details'),
|
||||
route: {
|
||||
name: 'BatchDetail',
|
||||
params: {
|
||||
|
||||
@@ -120,12 +120,12 @@ const courses = createResource({
|
||||
})
|
||||
|
||||
const breadcrumbs = computed(() => {
|
||||
let items = [{ label: 'Batches', route: { name: 'Batches' } }]
|
||||
items.push({
|
||||
let crumbs = [{ label: __('Batches'), route: { name: 'Batches' } }]
|
||||
crumbs.push({
|
||||
label: batch?.data?.title,
|
||||
route: { name: 'BatchDetail', params: { batchName: batch?.data?.name } },
|
||||
})
|
||||
return items
|
||||
return crumbs
|
||||
})
|
||||
|
||||
usePageMeta(() => {
|
||||
|
||||
@@ -559,7 +559,7 @@ const trashBatch = (close) => {
|
||||
const breadcrumbs = computed(() => {
|
||||
let crumbs = [
|
||||
{
|
||||
label: 'Batches',
|
||||
label: __('Batches'),
|
||||
route: {
|
||||
name: 'Batches',
|
||||
},
|
||||
@@ -577,7 +577,7 @@ const breadcrumbs = computed(() => {
|
||||
})
|
||||
}
|
||||
crumbs.push({
|
||||
label: props.batchName == 'new' ? 'New Batch' : 'Edit Batch',
|
||||
label: props.batchName == 'new' ? __('New Batch') : __('Edit Batch'),
|
||||
route: { name: 'BatchForm', params: { batchName: props.batchName } },
|
||||
})
|
||||
return crumbs
|
||||
|
||||
@@ -140,12 +140,12 @@ const isAdmin = computed(() => {
|
||||
})
|
||||
|
||||
const breadcrumbs = computed(() => {
|
||||
let items = [{ label: 'Courses', route: { name: 'Courses' } }]
|
||||
items.push({
|
||||
let crumbs = [{ label: __('Courses'), route: { name: 'Courses' } }]
|
||||
crumbs.push({
|
||||
label: course?.data?.title,
|
||||
route: { name: 'CourseDetail', params: { courseName: course?.data?.name } },
|
||||
})
|
||||
return items
|
||||
return crumbs
|
||||
})
|
||||
|
||||
usePageMeta(() => {
|
||||
|
||||
@@ -298,11 +298,11 @@ const jobStatuses = computed(() => {
|
||||
const breadcrumbs = computed(() => {
|
||||
let crumbs = [
|
||||
{
|
||||
label: 'Jobs',
|
||||
label: __('Jobs'),
|
||||
route: { name: 'Jobs' },
|
||||
},
|
||||
{
|
||||
label: props.jobName == 'new' ? 'New Job' : 'Edit Job',
|
||||
label: props.jobName == 'new' ? __('New Job') : __('Edit Job'),
|
||||
route: { name: 'JobForm' },
|
||||
},
|
||||
]
|
||||
@@ -311,7 +311,7 @@ const breadcrumbs = computed(() => {
|
||||
|
||||
usePageMeta(() => {
|
||||
return {
|
||||
title: props.jobName == 'new' ? 'New Job' : jobDetail.data?.job_title,
|
||||
title: props.jobName == 'new' ? __('New Job') : jobDetail.data?.job_title,
|
||||
icon: brand.favicon,
|
||||
}
|
||||
})
|
||||
|
||||
@@ -559,12 +559,12 @@ const notes = createListResource({
|
||||
})
|
||||
|
||||
const breadcrumbs = computed(() => {
|
||||
let items = [{ label: 'Courses', route: { name: 'Courses' } }]
|
||||
items.push({
|
||||
let crumbs = [{ label: __('Courses'), route: { name: 'Courses' } }]
|
||||
crumbs.push({
|
||||
label: lesson?.data?.course_title,
|
||||
route: { name: 'CourseDetail', params: { courseName: props.courseName } },
|
||||
})
|
||||
items.push({
|
||||
crumbs.push({
|
||||
label: lesson?.data?.title,
|
||||
route: {
|
||||
name: 'Lesson',
|
||||
@@ -575,7 +575,7 @@ const breadcrumbs = computed(() => {
|
||||
},
|
||||
},
|
||||
})
|
||||
return items
|
||||
return crumbs
|
||||
})
|
||||
|
||||
const switchLesson = (direction) => {
|
||||
|
||||
@@ -466,7 +466,7 @@ const validateLesson = () => {
|
||||
const breadcrumbs = computed(() => {
|
||||
let crumbs = [
|
||||
{
|
||||
label: 'Courses',
|
||||
label: __('Courses'),
|
||||
route: { name: 'Courses' },
|
||||
},
|
||||
{
|
||||
@@ -493,7 +493,9 @@ const breadcrumbs = computed(() => {
|
||||
})
|
||||
}
|
||||
crumbs.push({
|
||||
label: lessonDetails?.data?.lesson ? 'Edit Lesson' : 'Create Lesson',
|
||||
label: lessonDetails?.data?.lesson
|
||||
? __('Edit Lesson')
|
||||
: __('Create Lesson'),
|
||||
route: {
|
||||
name: 'LessonForm',
|
||||
params: {
|
||||
@@ -510,7 +512,7 @@ usePageMeta(() => {
|
||||
return {
|
||||
title: lessonDetails?.data?.lesson
|
||||
? lessonDetails.data.lesson.title
|
||||
: 'New Lesson',
|
||||
: __('New Lesson'),
|
||||
icon: brand.favicon,
|
||||
}
|
||||
})
|
||||
|
||||
@@ -293,7 +293,7 @@ const navigateTo = (url) => {
|
||||
const breadcrumbs = computed(() => {
|
||||
let crumbs = [
|
||||
{
|
||||
label: 'People',
|
||||
label: __('People'),
|
||||
},
|
||||
{
|
||||
label: profile.data?.full_name,
|
||||
|
||||
@@ -229,7 +229,7 @@ const setupSCORMAPI = () => {
|
||||
const breadcrumbs = computed(() => {
|
||||
return [
|
||||
{
|
||||
label: 'Courses',
|
||||
label: __('Courses'),
|
||||
route: { name: 'Courses' },
|
||||
},
|
||||
{
|
||||
|
||||
@@ -150,7 +150,7 @@ const { brand } = sessionStore()
|
||||
const breadcrumbs = computed(() => {
|
||||
return [
|
||||
{
|
||||
label: 'Statistics',
|
||||
label: __('Statistics'),
|
||||
route: {
|
||||
name: 'Statistics',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user