Skip to content

Commit d8488a6

Browse files
Coussecousseerika
andauthored
Learnpath: Fix dates not showing in lp lists in categories - refs #4763
Co-authored-by: erika <eandre-do-brito@linagora.com>
1 parent 8adf95c commit d8488a6

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

assets/vue/components/lp/LpCardItem.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ const props = defineProps({
1212
canExportPdf: { type: Boolean, default: false },
1313
ringDash: { type: Function, required: true },
1414
ringValue: { type: Function, required: true },
15+
buildDates: { type: Function, required: true },
1516
})
1617
const emit = defineEmits([
1718
"open","edit","report","settings", "build",
1819
"toggle-visible","toggle-publish","delete","export-scorm","export-pdf"
1920
])
2021
2122
const dateText = computed(() => {
22-
const v = props.lp?.dateText ?? ""
23+
const v = props.buildDates ? props.buildDates(props.lp) : ""
2324
return typeof v === "string" ? v.trim() : ""
2425
})
2526

assets/vue/components/lp/LpCategorySection.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const props = defineProps({
1919
canAutoLaunch: { type: Boolean, default: false },
2020
ringDash: { type: Function, required: true },
2121
ringValue: { type: Function, required: true },
22+
buildDates: { type: Function, required: false },
2223
})
2324
const emit = defineEmits([
2425
"open","edit","report","settings","build",
@@ -187,6 +188,7 @@ function onChangeCat() {
187188
:canExportScorm="canExportScorm"
188189
:canExportPdf="canExportPdf"
189190
:canAutoLaunch="canAutoLaunch"
191+
:buildDates="buildDates"
190192
@toggle-auto-launch="$emit('toggle-auto-launch', element)"
191193
@open="$emit('open', element)"
192194
@edit="$emit('edit', element)"

assets/vue/views/lp/LpList.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@
163163
:canExportScorm="canExportScorm"
164164
:canExportPdf="canExportPdf"
165165
:canAutoLaunch="canAutoLaunch"
166+
:buildDates="buildDates"
166167
@toggle-auto-launch="onToggleAutoLaunch"
167168
@open="openLegacy"
168169
@edit="goEdit"

0 commit comments

Comments
 (0)