Skip to content

Commit

Permalink
Edit EditGradeLayout.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
gemoreno committed May 6, 2024
1 parent 042ee01 commit 640689d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ fun GradeSection(title: String, information: String) {
)
Spacer(modifier = Modifier.height(4.dp))
Text(
text = if (information == "") stringResource(R.string.no_submission) else information,
text = if (information == "null") stringResource(R.string.no_submission) else information,
style = MaterialTheme.typography.bodyLarge
)
}
Expand Down
11 changes: 5 additions & 6 deletions front_end/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
<string name= "edit_score_label">New score</string>
<string name= "post_submission_link_label">New submission link</string>

<!-- Grades -->
<string name="edit_grade_score_label">Score</string>
<string name="edit_grade_submission_link_label">Submission Link</string>
<string name="no_submission">No submission</string>

<string name="courses_menu_students">Students</string>
<string name="courses_menu_assignments">Assignments</string>
<string name="courses_menu_content">Content</string>
Expand Down Expand Up @@ -70,10 +75,4 @@
<string name= "auth_logout">Logout</string>
<string name= "auth_logout_title">Confirm Logout</string>
<string name= "auth_logout_message">Are you sure you want to logout?</string>

<!-- Grades -->
<string name= "grades_empty">No grades to show</string>
<string name="edit_grade_score_label">Score</string>
<string name="edit_grade_submission_link_label">Submission Link</string>
<string name="no_submission">No submission</string>
</resources>

0 comments on commit 640689d

Please sign in to comment.