Skip to content

Commit

Permalink
GN-4853: Seach and sort templates alphabetically (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkozickis authored Jun 27, 2024
1 parent 5f5953d commit f92fb55
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/shaggy-pugs-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'frontend-gelinkt-notuleren': patch
---

GN-4853: Seach and sort templates alphabetically
2 changes: 2 additions & 0 deletions app/components/document-creator/form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
@options={{@options}}
@selected={{@selectedTemplate}}
@onChange={{@onSelectTemplate}}
@searchEnabled={{true}}
@searchField='title'
as |option|
>
{{option.title}}
Expand Down
1 change: 1 addition & 0 deletions app/services/regulatory-attachments-fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default class RegulatoryAttachmentsFetcher extends Service {
}
FILTER( ! BOUND(?validThrough) || ?validThrough > NOW())
}
ORDER BY LCASE(REPLACE(STR(?title), '^ +| +$', ''))
`;
const details = {
query: sparqlQuery,
Expand Down

0 comments on commit f92fb55

Please sign in to comment.