reload Details and Detailheader without updateUrl

This commit is contained in:
ma0068
2026-03-10 08:28:11 +01:00
parent 2237e9f1b7
commit 127ce312ea
2 changed files with 14 additions and 5 deletions
@@ -423,10 +423,19 @@ export default {
this.$refs.searchbar.hideresult();
},
handleReloadStudent(students){
this.$refs.stvList.updateUrl(
//TODO(Manu) check with Harald
this.$refs.details.reload(); //reload simply without updateUrl
//this.selected = students;
/* this.$refs.stvList.updateUrl(
ApiStv.students.uid(students[0].uid,'CURRENT_SEMESTER'),
true
);
);*/
/* this.$refs.stvList.updateUrl(
ApiStv.students.uid(students[0].uid,'CURRENT_SEMESTER'),
true
);*/
}
},
created() {
@@ -635,7 +644,7 @@ export default {
<stv-list ref="stvList" v-model:selected="selected" :studiengang-kz="studiengangKz" :studiensemester-kurzbz="studiensemesterKurzbz"></stv-list>
</template>
<template #bottom>
<stv-details ref="details" :students="selected" @reloadStudent:students="handleReloadStudent"></stv-details>
<stv-details ref="details" :students="selected" @reload-students="handleReloadStudent"></stv-details>
</template>
</vertical-split>
</main>
@@ -27,7 +27,7 @@ export default {
students: Array
},
emits: [
'reloadStudent:students'
'reload-students:students'
],
computed: {
appRoot() {
@@ -67,7 +67,7 @@ export default {
this.students.length > 0 &&
newVal !== this.students[0].query_studiensemester_kurzbz
) {
this.$emit('reloadStudent:students', this.students);
this.$emit('reload-students', this.students);
}
}