Skip to content

Commit

Permalink
show study members tab to study members - closes #15259
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed May 9, 2024
1 parent 8cb4289 commit 178907f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/controllers/Study.scala
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ final class Study(
division = division
)
)
studyJson <- env.study.jsonView(study, previews, chapter, fedNames.some, withMembers = !study.isRelay)
withMembers = !study.isRelay || isGrantedOpt(_.StudyAdmin)
studyJson <- env.study.jsonView(study, previews, chapter, fedNames.some, withMembers = withMembers)
yield WithChapter(study, chapter) -> JsData(
study = studyJson,
analysis = baseData
Expand Down
3 changes: 1 addition & 2 deletions ui/analyse/src/study/studyView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ export function side(ctrl: StudyCtrl, withSearch: boolean): VNode {

const tabs = h('div.tabs-horiz', { attrs: { role: 'tablist' } }, [
chaptersTab,
(ctrl.members.canContribute() || ctrl.data.admin) &&
makeTab('members', ctrl.trans.pluralSame('nbMembers', ctrl.members.size())),
ctrl.members.size() > 0 && makeTab('members', ctrl.trans.pluralSame('nbMembers', ctrl.members.size())),
withSearch &&
h('span.search.narrow', {
attrs: { ...dataIcon(licon.Search), title: 'Search' },
Expand Down

0 comments on commit 178907f

Please sign in to comment.