Skip to content

Commit 624aae6

Browse files
Merge pull request #6729 from christianbeeznest/fixes-updates132
Assignment: Allow student submissions until end date
2 parents c9ec086 + 66a020e commit 624aae6

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

assets/vue/views/assignments/AssignmentDetail.vue

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
@click="goBack"
2121
/>
2222

23-
<template v-if="forceStudentView && !isPastExpiry">
23+
<template v-if="forceStudentView && !isAfterEndDate">
2424
<div class="ml-auto flex gap-2">
2525
<BaseButton
2626
v-if="allowTextFlag && !allowFileFlag"
@@ -114,14 +114,6 @@
114114
>
115115
{{ t("You can no longer submit. The deadline has passed.") }}
116116
</div>
117-
118-
<div
119-
v-else-if="forceStudentView && isPastExpiry"
120-
class="text-amber-700 border border-amber-300 p-4 rounded bg-amber-50"
121-
>
122-
{{ t("Submissions are closed. You can no longer submit new work.") }}
123-
</div>
124-
125117
<h2 class="text-2xl font-bold">{{ assignment.title }}</h2>
126118
<div class="bg-gray-10 border border-gray-25 rounded-lg shadow-sm">
127119
<div
@@ -209,7 +201,6 @@ function fromApiLocal(str) {
209201
210202
const expiresOnDate = computed(() => fromApiLocal(assignment.value?.assignment?.expiresOn))
211203
const endsOnDate = computed(() => fromApiLocal(assignment.value?.assignment?.endsOn))
212-
const isPastExpiry = computed(() => (expiresOnDate.value ? new Date() > expiresOnDate.value : false))
213204
const isAfterEndDate = computed(() => (endsOnDate.value ? new Date() > endsOnDate.value : false))
214205
const isAfterDeadline = isAfterEndDate
215206

0 commit comments

Comments
 (0)