aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorRon Lucke <lucke@elan-ev.de>2025-01-20 12:35:39 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2025-01-31 11:30:38 +0100
commit8ce3a9447292d3107836c038bf184d777eae8fc7 (patch)
tree67c4a1343f03f4fe680a8b08a93619f837c03c57 /resources
parentc11474501a2f86c5653698868697bdf3e413cf5a (diff)
Inhaltsverzeichnis-Block zeigt Seite in Kachelansicht nicht an
Closes #5158 Merge request studip/studip!3860
Diffstat (limited to 'resources')
-rw-r--r--resources/vue/components/courseware/blocks/CoursewareTableOfContentsBlock.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/vue/components/courseware/blocks/CoursewareTableOfContentsBlock.vue b/resources/vue/components/courseware/blocks/CoursewareTableOfContentsBlock.vue
index 2f09ede..4247a55 100644
--- a/resources/vue/components/courseware/blocks/CoursewareTableOfContentsBlock.vue
+++ b/resources/vue/components/courseware/blocks/CoursewareTableOfContentsBlock.vue
@@ -11,7 +11,7 @@
:class="['cw-block-table-of-contents-' + currentStyle]">
<li v-for="child in childElementsWithTasks" :key="child.id">
<router-link :to="'/structural_element/' + child.id">
- <div class="cw-block-table-of-contents-title-box" :class="[child.attributes.payload.color]">
+ <div class="cw-block-table-of-contents-title-box" :class="[child.attributes.payload.color ?? 'studip-blue']">
{{ child.attributes.title }}
<span v-if="child.attributes.purpose === 'task'"> | {{ child.solverName }}</span>
<p v-if="currentStyle === 'list-details'">
@@ -27,7 +27,7 @@
? child.attributes.title + ' | ' + child.solverName
: child.attributes.title
">
- <courseware-tile tag="div" :color="child.attributes.payload.color"
+ <courseware-tile tag="div" :color="child.attributes.payload.color ?? 'studip-blue'"
:title="child.attributes.title" :imageUrl="getChildImageUrl(child)"
>
<template v-if="child.attributes.purpose === 'task'" #image-overlay>