VBV-512: Anwesenheit erneut bearbeiten

This commit is contained in:
Daniel Egger 2023-09-08 15:23:49 +02:00
parent 4909b38428
commit abf83b9fb8
2 changed files with 9 additions and 2 deletions

View File

@ -96,6 +96,10 @@ const loadAttendanceData = async () => {
}
};
function editAgain() {
state.attendanceSaved = false;
}
onMounted(() => {
log.debug("AttendanceCheckPage mounted");
loadAttendanceData();
@ -153,8 +157,11 @@ watch(
</div>
<div v-else class="self-center">
<p class="text-base">
{{ $t("Die Anwesenheit wurde definitiv bestätigt.") }}
{{ $t("a.Die Anwesenheit wurde definitiv bestätigt") }}
</p>
<button class="btn-link link" @click="editAgain()">
{{ $t("a.Erneut bearbeiten") }}
</button>
</div>
</div>

View File

@ -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");