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

index b017aea8bcc4a06974456bf3181184b29e858317..4c187693cf23e7456815605716fbb7d42c94d21a 100644 (file)
@@ -67,13 +67,15 @@ define([
             app: this.options.app
           });
       activationView.on('profileActivated', function (severity, params, profile) {
-        var activation = {
-          severity: severity,
-          inherit: 'NONE',
-          params: params,
-          qProfile: profile
-        };
-        that.model.set({ activation: activation });
+        if (that.options.app.state.get('query').qprofile === 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();