]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6208 Sync rule activation between list and details
authorStas Vilchik <vilchiks@gmail.com>
Tue, 15 Sep 2015 10:31:53 +0000 (12:31 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Tue, 15 Sep 2015 10:31:53 +0000 (12:31 +0200)
server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profiles-view.js

index fc7662e5073ed025a9b8979c55790c355365df4b..b017aea8bcc4a06974456bf3181184b29e858317 100644 (file)
@@ -66,7 +66,14 @@ define([
             collection: this.collection,
             app: this.options.app
           });
-      activationView.on('profileActivated', function () {
+      activationView.on('profileActivated', function (severity, params, profile) {
+        var activation = {
+          severity: severity,
+          inherit: 'NONE',
+          params: params,
+          qProfile: profile
+        };
+        that.model.set({ activation: activation });
         that.options.app.controller.showDetails(that.model);
       });
       activationView.render();