From 425b428b28a9d238b07a7cdaf3c686667f16e201 Mon Sep 17 00:00:00 2001 From: Sergey Suvorov Date: Thu, 21 Feb 2019 15:23:36 +0300 Subject: [PATCH] added notification creation on cohort pathway generation(#1358) --- js/pages/pathways/components/tabs/pathway-executions.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/pages/pathways/components/tabs/pathway-executions.js b/js/pages/pathways/components/tabs/pathway-executions.js index 96142fa6e..c5bbc90a0 100644 --- a/js/pages/pathways/components/tabs/pathway-executions.js +++ b/js/pages/pathways/components/tabs/pathway-executions.js @@ -13,6 +13,7 @@ define([ 'utils/DatatableUtils', 'services/Source', 'lodash', + 'services/JobDetailsService', 'services/Poll', 'less!./pathway-executions.less', 'components/modal-exit-message', @@ -31,6 +32,7 @@ define([ datatableUtils, SourceService, lodash, + jobDetailsService, PollService ) { class PathwayExecutions extends AutoBind(Component) { @@ -197,7 +199,10 @@ define([ confirmPromise .then(() => PathwayService.generate(this.analysisId(), source)) - .then(() => this.loadData()) + .then((data) => { + jobDetailsService.createJob(data); + this.loadData() + }) .catch(() => {}); }