diff --git a/app/app/components/section/github/type-editor.js b/app/app/components/section/github/type-editor.js index e73003c2..1402c23d 100644 --- a/app/app/components/section/github/type-editor.js +++ b/app/app/components/section/github/type-editor.js @@ -41,6 +41,9 @@ export default Ember.Component.extend(SectionMixin, NotifierMixin, TooltipMixin, branchLines: "100", userId: "", pageId: page.get('id'), + showMilestones: false, + showIssues: false, + showCommits: false, }; try { @@ -50,6 +53,9 @@ export default Ember.Component.extend(SectionMixin, NotifierMixin, TooltipMixin, config.branchSince = metaConfig.branchSince; config.userId = metaConfig.userId; config.pageId = metaConfig.pageId; + config.showMilestones = metaConfig.showMilestones; + config.showIssues = metaConfig.showIssues; + config.showCommits = metaConfig.showCommits; } catch (e) {} self.set('config', config); @@ -168,12 +174,16 @@ export default Ember.Component.extend(SectionMixin, NotifierMixin, TooltipMixin, return this.get('isDirty'); }, - onListCheckbox(id) { + onListCheckbox(id) { // select one repository only let lists = this.get('config.lists'); let list = lists.findBy('id', id); + lists.forEach(function (entry) { + Ember.set(entry, 'included', false); + }); + if (list !== null) { - Ember.set(list, 'included', !list.included); + Ember.set(list, 'included', true); } }, diff --git a/app/app/templates/components/section/github/type-editor.hbs b/app/app/templates/components/section/github/type-editor.hbs index 76d781c6..1e35767d 100644 --- a/app/app/templates/components/section/github/type-editor.hbs +++ b/app/app/templates/components/section/github/type-editor.hbs @@ -7,18 +7,30 @@
There are {{len .BranchCommits}} commits by {{.NumContributors}} contributors across {{.RepoCount}} +