From 782e3523e28addff07d678daf7fa75e82c2a7449 Mon Sep 17 00:00:00 2001 From: = Enea_Gore Date: Sat, 12 Oct 2024 15:54:19 +0200 Subject: [PATCH] fix issue from merge conflicts --- .../app/exercises/text/participate/text-editor.component.html | 2 +- .../app/exercises/text/participate/text-editor.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/app/exercises/text/participate/text-editor.component.html b/src/main/webapp/app/exercises/text/participate/text-editor.component.html index d8cb7bea5239..149184d562d5 100644 --- a/src/main/webapp/app/exercises/text/participate/text-editor.component.html +++ b/src/main/webapp/app/exercises/text/participate/text-editor.component.html @@ -137,7 +137,7 @@ : ('artemisApp.textExercise.assessedSubmissionInstructor' | artemisTranslate) }}: - @if (Result.isAthenaAIResult(result)) { + @if (isAthenaAIResult(result)) {
{{ 'artemisApp.result.preliminary' | artemisTranslate | uppercase }}
}
diff --git a/src/main/webapp/app/exercises/text/participate/text-editor.component.ts b/src/main/webapp/app/exercises/text/participate/text-editor.component.ts index cae85f302c08..c7177d424428 100644 --- a/src/main/webapp/app/exercises/text/participate/text-editor.component.ts +++ b/src/main/webapp/app/exercises/text/participate/text-editor.component.ts @@ -21,7 +21,7 @@ import { TextSubmission } from 'app/entities/text/text-submission.model'; import { StringCountService } from 'app/exercises/text/participate/string-count.service'; import { AccountService } from 'app/core/auth/account.service'; import { getFirstResultWithComplaint, getLatestSubmissionResult, setLatestSubmissionResult } from 'app/entities/submission.model'; -import { getUnreferencedFeedback } from 'app/exercises/shared/result/result.utils'; +import { getUnreferencedFeedback, isAthenaAIResult } from 'app/exercises/shared/result/result.utils'; import { onError } from 'app/shared/util/global.utils'; import { Course } from 'app/entities/course.model'; import { getCourseFromExercise } from 'app/entities/exercise.model'; @@ -30,7 +30,6 @@ import { faChevronDown, faCircleNotch, faEye, faPenSquare, faTimeline } from '@f import { MAX_SUBMISSION_TEXT_LENGTH } from 'app/shared/constants/input.constants'; import { AssessmentType } from 'app/entities/assessment-type.model'; import { CourseExerciseService } from 'app/exercises/shared/course-exercises/course-exercise.service'; -import { isAthenaAIResult } from 'app/exercises/shared/result/result.utils'; @Component({ selector: 'jhi-text-editor', templateUrl: './text-editor.component.html', @@ -481,4 +480,5 @@ export class TextEditorComponent implements OnInit, OnDestroy, ComponentCanDeact const bValue = dayjs(b.submissionDate!).valueOf(); return aValue - bValue; }; + protected readonly isAthenaAIResult = isAthenaAIResult; }