aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/issues/controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues/controller.js')
-rw-r--r--server/sonar-web/src/main/js/apps/issues/controller.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/controller.js b/server/sonar-web/src/main/js/apps/issues/controller.js
index edc86827050..dd03639f5b0 100644
--- a/server/sonar-web/src/main/js/apps/issues/controller.js
+++ b/server/sonar-web/src/main/js/apps/issues/controller.js
@@ -21,6 +21,8 @@ import $ from 'jquery';
import Backbone from 'backbone';
import Controller from '../../components/navigator/controller';
import ComponentViewer from './component-viewer/main';
+import getStore from '../../app/utils/getStore';
+import { receiveIssues } from '../../store/issues/duck';
const FACET_DATA_FIELDS = ['components', 'users', 'rules', 'languages'];
@@ -35,6 +37,11 @@ export default Controller.extend({
};
},
+ receiveIssues (issues) {
+ const store = getStore();
+ store.dispatch(receiveIssues(issues));
+ },
+
fetchList (firstPage) {
const that = this;
if (firstPage == null) {
@@ -54,6 +61,7 @@ export default Controller.extend({
}
return $.get(window.baseUrl + '/api/issues/search', data).done(r => {
const issues = that.options.app.list.parseIssues(r);
+ this.receiveIssues(issues);
if (firstPage) {
that.options.app.list.reset(issues);
} else {