From e215e9e948a5df80866d6a5f702e349001f6fd40 Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Wed, 11 Dec 2024 12:44:06 +0100 Subject: [PATCH 1/5] refactor(News-Paginator@Bottom):also adds the pagination at the bottom of the news, so that the user doesn't have to scroll up if he reaches the end --- public/js/components/Cis/Cms/News.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/components/Cis/Cms/News.js b/public/js/components/Cis/Cms/News.js index 6633ef237..9b46981be 100644 --- a/public/js/components/Cis/Cms/News.js +++ b/public/js/components/Cis/Cms/News.js @@ -38,7 +38,7 @@ export default { template: /*html*/ `

News


- +
@@ -51,5 +51,7 @@ export default {
+ + `, }; From 4321a2325bff48b1eccac8ff6b587ecdcb9df07d Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Thu, 12 Dec 2024 11:35:16 +0100 Subject: [PATCH 2/5] update(StudiengangInformation.js): adds the general moodle link for the Studiengang informations to the component using a static link --- public/js/components/Cis/Cms/News.js | 1 + .../StudiengangInformation.js | 23 ++++++++++++++----- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/public/js/components/Cis/Cms/News.js b/public/js/components/Cis/Cms/News.js index 9b46981be..d032cd44f 100644 --- a/public/js/components/Cis/Cms/News.js +++ b/public/js/components/Cis/Cms/News.js @@ -4,6 +4,7 @@ import StudiengangInformation from "./StudiengangInformation/StudiengangInformat export default { components: { Pagination, + StudiengangInformation, }, data() { return { diff --git a/public/js/components/Cis/Cms/StudiengangInformation/StudiengangInformation.js b/public/js/components/Cis/Cms/StudiengangInformation/StudiengangInformation.js index 82d8f6382..8ae4f597a 100644 --- a/public/js/components/Cis/Cms/StudiengangInformation/StudiengangInformation.js +++ b/public/js/components/Cis/Cms/StudiengangInformation/StudiengangInformation.js @@ -26,15 +26,20 @@ components:{ StudiengangVertretung, }, template:/*html*/` + + ` diff --git a/public/js/components/Cis/Mylv/Semester/Studiengang/Lv/Pruefungen.js b/public/js/components/Cis/Mylv/Semester/Studiengang/Lv/Pruefungen.js index b41b58664..d2d1a240a 100644 --- a/public/js/components/Cis/Mylv/Semester/Studiengang/Lv/Pruefungen.js +++ b/public/js/components/Cis/Mylv/Semester/Studiengang/Lv/Pruefungen.js @@ -10,7 +10,7 @@ export default { BsModal ], props: { - lehrveranstaltung_id: Number, + pruefungenData: Array|null, bezeichnung: String, /* * NOTE(chris): @@ -26,16 +26,7 @@ export default { }, data: () => ({ result: true, - pruefungen: null }), - created() { - if (pruefungen[this.lehrveranstaltung_id]) - this.pruefungen = pruefungen[this.lehrveranstaltung_id]; - else - axios.get(FHC_JS_DATA_STORAGE_OBJECT.app_root + FHC_JS_DATA_STORAGE_OBJECT.ci_router + '/components/Cis/Mylv/Pruefungen/' + this.lehrveranstaltung_id).then(res => { - this.pruefungen = pruefungen[this.lehrveranstaltung_id] = res.data.retval || []; - }); - }, mounted() { this.modal = this.$refs.modalContainer.modal; }, @@ -47,10 +38,10 @@ export default { Prüfungen: {{bezeichnung}}