actually block upload for graded abgabetermine (quality gates) for students, not only assistenz; updated tooltip accordingly;

This commit is contained in:
Johann Hoffmann
2026-07-20 11:04:26 +02:00
parent f346bc6fcb
commit 1b599b49ed
2 changed files with 4 additions and 2 deletions
@@ -408,7 +408,7 @@ export const AbgabeStudentDetail = {
if(this.isViewMode) {
return { value: this.$capitalize(this.$p.t('abgabetool/c4studentAbgabeNotAllowedInViewMode')), class: "custom-tooltip" }
} else {
return { value: this.$capitalize(this.$p.t('abgabetool/c4studentAbgabeNotAllowedRegularv2')), class: "custom-tooltip" }
return { value: this.$capitalize(this.$p.t('abgabetool/c4studentAbgabeNotAllowedRegularv3')), class: "custom-tooltip" }
}
},
getTooltipBeurteilungerforderlich() {
@@ -187,7 +187,9 @@ export const AbgabetoolStudent = {
termin.file = []
termin.allowedToUpload = false
if(termin.paabgabetyp_kurzbz == 'end') {
if(termin.note) { // quality gate termin already has note
termin.allowedToUpload = false
} else if(termin.paabgabetyp_kurzbz == 'end') {
const inTime = termin.fixtermin ? !this.isPastDate(termin.datum) : true
termin.allowedToUpload = inTime && this.checkQualityGatesOptional(pa.abgabetermine)
} else if(termin.fixtermin) {