fix(LvPlan renderer) uses Vue.nextTick to acknowledge the suspense state of the dynamically loaded component

This commit is contained in:
SimonGschnell
2025-06-23 11:44:08 +02:00
parent 1d9936757c
commit 30e4459f67
2 changed files with 8 additions and 7 deletions
+8 -6
View File
@@ -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) => {
@@ -120,7 +120,6 @@ export default {
</tbody>
</table>
<h3>{{$p.t('lehre','lehrveranstaltungsmenue')}}</h3>
<lv-menu :containerStyles="['p-0']" :rowStyles="['m-0']" v-if="lvMenu" :menu="lvMenu" />
</div>`,
}