fix: wire SermonBlock in Edit.vue and add missing refreshPage function

This commit is contained in:
Thorsten Bus 2026-03-02 10:42:10 +01:00
parent 2994a8e853
commit 292ad6b923

View file

@ -5,6 +5,7 @@ import { ref, computed } from 'vue'
import InformationBlock from '@/Components/Blocks/InformationBlock.vue'
import ModerationBlock from '@/Components/Blocks/ModerationBlock.vue'
import SongsBlock from '@/Components/Blocks/SongsBlock.vue'
import SermonBlock from '@/Components/Blocks/SermonBlock.vue'
const props = defineProps({
service: {
@ -59,6 +60,10 @@ function goBack() {
router.get(route('services.index'))
}
function refreshPage() {
router.reload({ preserveScroll: true })
}
/* ── Block definitions ───────────────────────────────────── */
const blocks = [
{
@ -261,6 +266,13 @@ function blockBadgeLabel(key) {
@slides-updated="refreshPage"
/>
<SermonBlock
v-else-if="block.key === 'sermon'"
:service-id="service.id"
:slides="sermonSlides"
@slides-updated="refreshPage"
/>
<SongsBlock
v-else-if="block.key === 'songs'"
:service-songs="serviceSongs"