From ae732a3e6631d9462065ce5d3bc0f9ab9f733f1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20W=C3=B6rister?= <31357619+fwoerister@users.noreply.github.com> Date: Thu, 5 Feb 2026 11:28:04 +0100 Subject: [PATCH] move debugger and challenge card to tabs --- src/components/BlocksemblerChallengeCard.vue | 7 +- src/components/BlocksemblerCodingView.vue | 70 +++++++++++++++++++- 2 files changed, 71 insertions(+), 6 deletions(-) diff --git a/src/components/BlocksemblerChallengeCard.vue b/src/components/BlocksemblerChallengeCard.vue index a951bd2..a8054cc 100644 --- a/src/components/BlocksemblerChallengeCard.vue +++ b/src/components/BlocksemblerChallengeCard.vue @@ -28,7 +28,7 @@ let errorPage = "Please try reloading the page. If the problem persists, contact your system administrator."; let allowSubmission = computed(() => { - return remainingTimeToNextSubmission.value === 0; + return remainingTimeToNextSubmission.value !== null && remainingTimeToNextSubmission.value === 0; }); let allowSkip = computed(() => { @@ -36,11 +36,11 @@ let allowSkip = computed(() => { }) let nextSkipAllowedAt: Ref = ref(null); -let remainingTimeToNextSkip: Ref = ref(0); +let remainingTimeToNextSkip: Ref = ref(null); let timeToNextSkipTimer: Ref = ref(null); let nextSubmissionAllowedAt: Ref = ref(new Date(Date.now() + 1000 * 60 * 60 * 24 * 7)); -let remainingTimeToNextSubmission: Ref = ref(0); +let remainingTimeToNextSubmission: Ref = ref(null); let timeToNextSubmissionTimer: Ref = ref(null); let markdown = ref(""); @@ -195,7 +195,6 @@ const skipExercise = () => { \ No newline at end of file