From 0a872e25a7fb2fbc3028a13b026a54bce3367bd8 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Thu, 14 Jan 2016 14:04:27 +0100 Subject: [PATCH] Fix showing running jobs When I changed tabs-list-view to be a component I missed the fact that config is not registered for components, which resulted in not showing the running jobs tab at all. This commit fixes the situation. --- app/initializers/config.js | 1 + app/templates/repos.hbs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/initializers/config.js b/app/initializers/config.js index 50a0a0f7..3e6dc8ba 100644 --- a/app/initializers/config.js +++ b/app/initializers/config.js @@ -7,6 +7,7 @@ initialize = function(container, application) { instantiate: false }); application.inject('controller', 'config', 'config:main'); + application.inject('component', 'config', 'config:main'); return application.inject('route', 'config', 'config:main'); }; diff --git a/app/templates/repos.hbs b/app/templates/repos.hbs index 75026c0f..606af8fe 100644 --- a/app/templates/repos.hbs +++ b/app/templates/repos.hbs @@ -4,7 +4,7 @@ -{{repos-list-tabs tab=tab showMyRepositories=(action "showMyRepositories") showRunningJobs=(action "showRunningJobs")}} +{{repos-list-tabs tab=tab startedJobsCount=startedJobsCount allJobsCount=allJobsCount showMyRepositories=(action "showMyRepositories") showRunningJobs=(action "showRunningJobs")}} {{#if showRunningJobs}}