File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
assets/vue/views/assignments Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change 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"
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
210202const expiresOnDate = computed (() => fromApiLocal (assignment .value ? .assignment ? .expiresOn ))
211203const endsOnDate = computed (() => fromApiLocal (assignment .value ? .assignment ? .endsOn ))
212- const isPastExpiry = computed (() => (expiresOnDate .value ? new Date () > expiresOnDate .value : false ))
213204const isAfterEndDate = computed (() => (endsOnDate .value ? new Date () > endsOnDate .value : false ))
214205const isAfterDeadline = isAfterEndDate
215206
You can’t perform that action at this time.
0 commit comments