Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show a dash if test is not published #512 #627

Merged
merged 3 commits into from
Oct 30, 2023

Conversation

caebr
Copy link
Collaborator

@caebr caebr commented Oct 26, 2023

Siehe #512

@caebr caebr requested a review from hupf October 26, 2023 11:58
@caebr caebr self-assigned this Oct 26, 2023
Copy link
Collaborator

@hupf hupf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sieht gut aus, habe noch eine Frage gestellt...

Ich passe die Dashes dann in meinem Branch an, wenn das hier gemerged ist.

@@ -11,6 +11,7 @@ export class TestPointsPipe implements PipeTransform {

transform(input: Test, studentId: number, label = "tests.points"): string {
if (!input.IsPointGrading) return "";
if (!input.IsPublished) return "-";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wäre ist beim oberen Statement (if (!input.IsPointGrading) return "";) nicht auch sinnvoll einen "–" zu rendern?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ich bin nicht sicher. Falls der Strich als "da kommt später noch eine Zahl" interpretiert wird (was ja hier nicht der Fall wäre) ist keine Anzeige möglicherweise besser...?

@caebr caebr force-pushed the feature/512-my-grades-hide-unpublished-points branch from b9c5342 to bf72a8c Compare October 30, 2023 14:30
@caebr caebr merged commit b154de1 into main Oct 30, 2023
2 checks passed
@caebr caebr deleted the feature/512-my-grades-hide-unpublished-points branch October 30, 2023 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants