From abf83b9fb8fd45afab3786c455260f66d284f6fa Mon Sep 17 00:00:00 2001 From: Daniel Egger Date: Fri, 8 Sep 2023 15:23:49 +0200 Subject: [PATCH] VBV-512: Anwesenheit erneut bearbeiten --- .../cockpit/attendanceCheckPage/AttendanceCheckPage.vue | 9 ++++++++- .../learningContentPage/LearningContentPage.vue | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/client/src/pages/cockpit/attendanceCheckPage/AttendanceCheckPage.vue b/client/src/pages/cockpit/attendanceCheckPage/AttendanceCheckPage.vue index 2d22699a..053bd059 100644 --- a/client/src/pages/cockpit/attendanceCheckPage/AttendanceCheckPage.vue +++ b/client/src/pages/cockpit/attendanceCheckPage/AttendanceCheckPage.vue @@ -96,6 +96,10 @@ const loadAttendanceData = async () => { } }; +function editAgain() { + state.attendanceSaved = false; +} + onMounted(() => { log.debug("AttendanceCheckPage mounted"); loadAttendanceData(); @@ -153,8 +157,11 @@ watch(

- {{ $t("Die Anwesenheit wurde definitiv bestätigt.") }} + {{ $t("a.Die Anwesenheit wurde definitiv bestätigt") }}

+
diff --git a/client/src/pages/learningPath/learningContentPage/LearningContentPage.vue b/client/src/pages/learningPath/learningContentPage/LearningContentPage.vue index 079a2a93..1245e9bf 100644 --- a/client/src/pages/learningPath/learningContentPage/LearningContentPage.vue +++ b/client/src/pages/learningPath/learningContentPage/LearningContentPage.vue @@ -61,7 +61,7 @@ onUpdated(() => { const anchors = rootElement.querySelectorAll("a"); anchors.forEach((anchor: HTMLAnchorElement) => { if ( - /^https?\:\/\//i.test(anchor.href) && + /^https?:\/\//i.test(anchor.href) && !anchor.href.includes(window.location.hostname) ) { anchor.setAttribute("target", "_blank");