fix: wire SermonBlock in Edit.vue and add missing refreshPage function
This commit is contained in:
parent
2994a8e853
commit
292ad6b923
|
|
@ -5,6 +5,7 @@ import { ref, computed } from 'vue'
|
||||||
import InformationBlock from '@/Components/Blocks/InformationBlock.vue'
|
import InformationBlock from '@/Components/Blocks/InformationBlock.vue'
|
||||||
import ModerationBlock from '@/Components/Blocks/ModerationBlock.vue'
|
import ModerationBlock from '@/Components/Blocks/ModerationBlock.vue'
|
||||||
import SongsBlock from '@/Components/Blocks/SongsBlock.vue'
|
import SongsBlock from '@/Components/Blocks/SongsBlock.vue'
|
||||||
|
import SermonBlock from '@/Components/Blocks/SermonBlock.vue'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
service: {
|
service: {
|
||||||
|
|
@ -59,6 +60,10 @@ function goBack() {
|
||||||
router.get(route('services.index'))
|
router.get(route('services.index'))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function refreshPage() {
|
||||||
|
router.reload({ preserveScroll: true })
|
||||||
|
}
|
||||||
|
|
||||||
/* ── Block definitions ───────────────────────────────────── */
|
/* ── Block definitions ───────────────────────────────────── */
|
||||||
const blocks = [
|
const blocks = [
|
||||||
{
|
{
|
||||||
|
|
@ -261,6 +266,13 @@ function blockBadgeLabel(key) {
|
||||||
@slides-updated="refreshPage"
|
@slides-updated="refreshPage"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<SermonBlock
|
||||||
|
v-else-if="block.key === 'sermon'"
|
||||||
|
:service-id="service.id"
|
||||||
|
:slides="sermonSlides"
|
||||||
|
@slides-updated="refreshPage"
|
||||||
|
/>
|
||||||
|
|
||||||
<SongsBlock
|
<SongsBlock
|
||||||
v-else-if="block.key === 'songs'"
|
v-else-if="block.key === 'songs'"
|
||||||
:service-songs="serviceSongs"
|
:service-songs="serviceSongs"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue