-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: add cases of facility to frontend #252
Conversation
Signed-off-by: Ingo Sternberg <[email protected]> #250
Signed-off-by: Ingo Sternberg <[email protected]> #250
Signed-off-by: Ingo Sternberg <[email protected]> #250
Signed-off-by: Ingo Sternberg <[email protected]> #250
Co-authored-by: Ingo Sternberg <[email protected]> Signed-off-by: Alexander Lorenz <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good - besides the two comments on the files, why is it called: "facility.cases.length" and not smth. like facility.cases.count as it is not the length of a case but i assume the number of cases for a given facility. This is nitpicking, i know.
libs/cases/frontend/view/src/lib/components/create-case/create-case.component.spec.ts
Show resolved
Hide resolved
libs/cases/frontend/view/src/lib/components/case-browse/case-browse.component.html
Show resolved
Hide resolved
It is .length because cases is an array and to get the length of it you do .length |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good - tank you for the quick answer
I also changed the routing of the goBack Button to use location.back(). I first thought just cutting the current url until the / would be the best but location.back() is actually better.
It goes back to the last page so now if you click on view 3rd case and go back you are redirected back to the details page where you came from
Signed-off-by: Ingo Sternberg [email protected]
#250