From 65f9e4307aae28e111a73aab50bdce8c5c4ebc73 Mon Sep 17 00:00:00 2001 From: Dominik Seeger <dominik.seeger@gmx.net> Date: Wed, 14 Aug 2019 19:20:55 +0200 Subject: [PATCH] hints will now also show during initial correction --- .../components/submission_notes/SubmissionCorrection.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/submission_notes/SubmissionCorrection.vue b/frontend/src/components/submission_notes/SubmissionCorrection.vue index c520dc35..4687c239 100644 --- a/frontend/src/components/submission_notes/SubmissionCorrection.vue +++ b/frontend/src/components/submission_notes/SubmissionCorrection.vue @@ -172,8 +172,12 @@ export default { }, 5e3) }, hasHiddenComment (lineNo) { - return !this.showFeedback && this.origFeedback[lineNo] + const hasOrigComment = this.origFeedback && this.origFeedback[lineNo] && this.origFeedback[lineNo].length > 0 + + const hasUpdatedComment = this.updatedFeedback && this.updatedFeedback[lineNo] + + return !this.showFeedback && (hasOrigComment ||Â hasUpdatedComment) }, init () { SubmissionNotes.RESET_STATE() -- GitLab