From 30e4459f672ebe270423f71f4f25e1c1810ba7a3 Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Mon, 23 Jun 2025 11:44:08 +0200 Subject: [PATCH] fix(LvPlan renderer) uses Vue.nextTick to acknowledge the suspense state of the dynamically loaded component --- public/js/components/Cis/LvPlan/LvPlan.js | 14 ++++++++------ .../Cis/Renderer/Lehreinheit/modalContent.js | 1 - 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/public/js/components/Cis/LvPlan/LvPlan.js b/public/js/components/Cis/LvPlan/LvPlan.js index 08c022182..2ada75802 100644 --- a/public/js/components/Cis/LvPlan/LvPlan.js +++ b/public/js/components/Cis/LvPlan/LvPlan.js @@ -199,12 +199,14 @@ const LvPlan = { }, showModal: function(event){ this.currentlySelectedEvent = event; - if(this.isModalContentResolved && this.isModalTitleResolved){ - if(this.$refs.lvmodal) this.$refs.lvmodal.show(); - } - else{ - this.isShowModal = true; - } + Vue.nextTick(()=>{ + if(this.isModalContentResolved && this.isModalTitleResolved){ + if(this.$refs.lvmodal) this.$refs.lvmodal.show(); + } + else{ + this.isShowModal = true; + } + }) }, updateRange: function ({start,end, mounted}) { let checkDate = (date) => { diff --git a/public/js/components/Cis/Renderer/Lehreinheit/modalContent.js b/public/js/components/Cis/Renderer/Lehreinheit/modalContent.js index d6dce547c..c03a1cd64 100644 --- a/public/js/components/Cis/Renderer/Lehreinheit/modalContent.js +++ b/public/js/components/Cis/Renderer/Lehreinheit/modalContent.js @@ -120,7 +120,6 @@ export default { -

{{$p.t('lehre','lehrveranstaltungsmenue')}}

`, } \ No newline at end of file