mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 22:42:16 +00:00
reload Details and Detailheader without updateUrl
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user