diff --git a/public/js/components/Stv/Studentenverwaltung/Details.js b/public/js/components/Stv/Studentenverwaltung/Details.js index 9b888093f..4df148063 100644 --- a/public/js/components/Stv/Studentenverwaltung/Details.js +++ b/public/js/components/Stv/Studentenverwaltung/Details.js @@ -7,6 +7,12 @@ export default { components: { FhcTabs }, + data() { + return { + configStudent: null, + configStudents: null + }; + }, props: { students: Array }, @@ -21,20 +27,34 @@ export default { this.$refs.tabs.$refs.current.reload(); } }, + created() { + this.$fhcApi + .factory.stv.configStudent() + .then(result => { + this.configStudent = result.data; + }) + .catch(this.$fhcAlert.handleSystemError); + this.$fhcApi + .factory.stv.configStudents() + .then(result => { + this.configStudents = result.data; + }) + .catch(this.$fhcAlert.handleSystemError); + }, template: `