Skip to content

Commit f7c6d12

Browse files
committed
fix: simplify concept-set and cohort-definition main pages
...at the same time making them more 508 compliant
1 parent 966a984 commit f7c6d12

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

js/components/circe/components/ConceptSetBrowserTemplate.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,16 @@
1515
orderColumn: 3,
1616
reference: repositoryConceptSets(),
1717
columns: columns,
18-
options: options,
18+
options: {
19+
paging: false, // Disable pagination
20+
searching: true, // Keep the search bar
21+
},
22+
buttons: [], // Ensure no buttons are displayed
1923
language: ko.i18n('datatable.language'),
2024
autoWidth: false,
2125
orderClasses: false,
2226
deferRender: true,
23-
pageLength: pageLength,
27+
// pageLength: pageLength,
2428
lengthMenu: lengthMenu,
2529
rowClick: selectRepositoryConceptSet">
2630
</faceted-datatable>

js/components/entityBrowsers/cohort-definition-browser.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,17 @@
44
autoWidth: false,
55
reference:data,
66
columns: columns,
7-
options: options,
8-
buttons: buttons,
7+
options: {
8+
paging: false, // Disable pagination
9+
searching: true, // Keep the search bar
10+
},
11+
buttons: [], // Ensure no buttons are displayed
912
dom: tableDom,
1013
rowClick: !multiChoice ? rowClick : null,
1114
scrollY: scrollY,
1215
selectedData: filteredData,
1316
dtApi: dtApi,
14-
pageLength: pageLength,
17+
// pageLength: pageLength,
1518
lengthMenu: lengthMenu,
1619
language: ko.i18n('datatable.language')
1720
">

0 commit comments

Comments
 (0)