-
Notifications
You must be signed in to change notification settings - Fork 1
HEEDLS-809 - fixed the copy course button #1037
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
Conversation
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.
Nice work!
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.
A couple of nitpicks.
| } | ||
|
|
||
| function defaultVoidFunction(): void { | ||
| return undefined; |
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.
I'm not sure it's permitted by the linter, but I'd find it neater to have an empty function rather than an undefined return. But if you think otherwise it's not important.
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.
Unfortunately, that was what I had first tried to go for at first, but the linter disagreed. This was the cleanest solution that I could find that pleased it.
| return element.getAttribute('data-filter-value')?.trim() ?? ''; | ||
| } | ||
|
|
||
| private displaySearchableElementsAndRunSuppliedFunction(searchableElements: ISearchableElement[]) |
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.
I think 'runPostDisplayFunction' or something like that would be clearer than 'runSuppliedFunction'.
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.
Good call. I've renamed it.
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.
LGTM
JIRA link
https://softwiretech.atlassian.net/browse/HEEDLS-809
Description
Fixed the copy course link button to copy the course link again. Details of the issue are in the comment on the ticket.
Not sure if the modifications to the SearchSortFilterPaginate JS are the best approach here. Do let me know if you have a better suggestion.
Screenshots
N/A
Developer checks
(Leave tasks unticked if they haven't been appropriate for your ticket.)
I have: