Skip to content

Commit 61b988d

Browse files
lodewigesToMaarton
andauthored
Hide kiemgroup selector (#1033)
* hide kiemgroup selector * lint fix --------- Co-authored-by: Maarten beute <150816290+ToMaarton@users.noreply.github.com>
1 parent 41117f2 commit 61b988d

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

app/controllers/groups/index.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,26 @@ export default class GroupsIndexController extends FilterableAndSortableControll
4646
];
4747
}
4848

49+
get groupKinds2() {
50+
if (this.search) {
51+
return ['zoekresultaten'];
52+
}
53+
54+
return [
55+
'bestuur',
56+
'commissie',
57+
'dispuut',
58+
'genootschap',
59+
'groep',
60+
'huis',
61+
'werkgroep',
62+
'kring',
63+
'lichting',
64+
'curiositas',
65+
'zal',
66+
];
67+
}
68+
4969
get selectedGroupKind() {
5070
return this.search
5171
? 'zoekresultaten'

app/templates/groups/index.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
aria-orientation='vertical'
6868
>
6969
<h5 class='ms-3 mb-3'>Groepen</h5>
70-
{{#each groupKinds as |item index|}}
70+
{{#each groupKinds2 as |item index|}}
7171
<LinkTo
7272
@route='groups'
7373
@query={{hash kind=item}}

0 commit comments

Comments
 (0)