Skip to content

Commit

Permalink
Add recommend tab to embedded concept set editor.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisknoll committed Sep 29, 2022
1 parent 2a2d4ae commit 85f643f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
10 changes: 10 additions & 0 deletions js/components/conceptset/conceptset-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ define([
'./included',
'./included-badge',
'./included-sourcecodes',
'./recommend',
'./export',
'./import',
'less!./conceptset-list.less',
Expand Down Expand Up @@ -89,6 +90,7 @@ define([
loadConceptSet: this.loadConceptSet,
importing: this.importing,
selectedTabKey: this.selectedTabKey,
canEdit: this.canEdit,
};
this.tabs = [
{
Expand All @@ -110,6 +112,14 @@ define([
componentName: 'conceptset-list-included-sourcecodes',
componentParams: {...tabParams, loading: ko.pureComputed(() => (this.conceptSetStore.loadingSourceCodes() || this.loading()))}
},
{
title: ko.i18n('cs.manager.tabs.recommend', 'Recommend'),
key: ViewMode.RECOMMEND,
componentName: 'conceptset-recommend',
componentParams: {
...tabParams, loading: ko.pureComputed(() => (this.conceptSetStore.loadingRecommended() || this.loading()))
}
},
{
title: ko.i18n('common.export', 'Export'),
key: ViewMode.EXPORT,
Expand Down
9 changes: 3 additions & 6 deletions js/pages/concept-sets/conceptset-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,7 @@ define([
canEdit: this.canEdit,
currentConceptSet: this.conceptSetStore.current,
conceptSetStore: this.conceptSetStore,
loading: this.conceptSetStore.loadingIncluded,
activeConceptSet: ko.observable(this.conceptSetStore),
loading: this.conceptSetStore.loadingIncluded
},
hasBadge: true,
},
Expand All @@ -252,8 +251,7 @@ define([
tableOptions,
canEdit: this.canEdit,
conceptSetStore: this.conceptSetStore,
loading: this.conceptSetStore.loadingSourceCodes,
activeConceptSet: ko.observable(this.conceptSetStore),
loading: this.conceptSetStore.loadingSourceCodes
},
},
{
Expand All @@ -265,8 +263,7 @@ define([
tableOptions,
canEdit: this.canEdit,
conceptSetStore: this.conceptSetStore,
loading: this.conceptSetStore.loadingRecommended,
activeConceptSet: ko.observable(this.conceptSetStore),
loading: this.conceptSetStore.loadingRecommended
}
},
{
Expand Down

0 comments on commit 85f643f

Please sign in to comment.