Skip to content

Commit

Permalink
Merge pull request #546 from uw-it-aca/task/success-alert
Browse files Browse the repository at this point in the history
use v-html for these messages
  • Loading branch information
jlaney authored Feb 12, 2025
2 parents f18e591 + 7c58b8a commit 55519aa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions course_grader_vue/components/workflow/confirm-grades.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,20 +76,20 @@
class="small"
>
<i class="bi bi-exclamation-triangle-fill me-1"></i>
{{ partialGradeErrorText }}
<span v-html="partialGradeErrorText"></span>
</BAlert>

<!-- danger -->
<BAlert v-else variant="danger" :model-value="true" class="small">
<i class="bi bi-exclamation-octagon-fill me-1"></i>
{{ allGradeErrorText }}
<span v-html="allGradeErrorText"></span>
</BAlert>
</template>

<!-- success -->
<BAlert v-else variant="success" :model-value="true" class="small">
<i class="bi bi-check-circle-fill me-1"></i>
Grade submission successful!
<span>Grade submission successful!</span>
</BAlert>
</template>

Expand All @@ -105,7 +105,7 @@
<span v-if="submission.section_id">
Section {{ submission.section_id }}:
</span>
<span>{{ gradesSubmittedText(submission) }}</span>
<span v-html="gradesSubmittedText(submission)"></span>
<BLink
href="https://itconnect.uw.edu/learn/tools/gradepage/change-submitted-grades/"
target="_blank"
Expand Down Expand Up @@ -271,8 +271,8 @@ export default {
partialGradeErrorText() {
return interpolate(
ngettext(
"Grades submitted, but one grade had an error.",
"Grades submitted, but %(failed_submission_count)s grades had errors.",
"Grades submitted, but <strong>one</strong> grade had an error.",
"Grades submitted, but <strong>%(failed_submission_count)s</strong> grades had errors.",
this.appState.graderoster.failed_submission_count
),
this.appState.graderoster,
Expand Down

0 comments on commit 55519aa

Please # to comment.