London | JAN-ITP-26 | Kayanat Suleman | Sprint 2 | Book Library - #420
London | JAN-ITP-26 | Kayanat Suleman | Sprint 2 | Book Library#420KayanatSuleman wants to merge 9 commits into
Conversation
cjyuan
left a comment
There was a problem hiding this comment.
Can you check if any of this general feedback can help you further improve your code?
https://github.com/CodeYourFuture/Module-Data-Flows/blob/general-review-feedback/debugging/book-library/feedback.md
Doing so can help me speed up the review process. Thanks.
|
@cjyuan Hi thank you for sharing - I have refactored the code now to based off the general review comments, Please see updated code base. Thank you. |
| function showMessage(message) { | ||
| let messageBox = document.getElementById("message"); | ||
|
|
||
| if (!messageBox) { | ||
| messageBox = document.createElement("div"); | ||
| messageBox.id = "message"; | ||
| messageBox.className = "alert alert-info mt-3"; | ||
| displayTable.insertAdjacentElement("beforebegin", messageBox); | ||
| } | ||
|
|
||
| messageBox.textContent = message; | ||
| } No newline at end of file |
There was a problem hiding this comment.
Nice touch.
Currently, once the message is displayed, it does not go away when the user perform other tasks such as adding a new book.
As this is something extra, no change required.
|
Closing PR because the January ITP run has finished. Feel free to re-open if you're still working on it. |
Learners, PR Template
Self checklist
Changelist