diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-09-16 14:39:53 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-09-16 15:24:09 +0200 |
commit | 937ac93f4d23638cedcec44629a571e06a14a6f3 (patch) | |
tree | 12cc6e58c5df24c5cf7be0da4ab70118abff33b6 /server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profiles-view.js | |
parent | e8a6df9c1b579ec0c68da871e07d9d3db3bc6ebc (diff) | |
download | sonarqube-937ac93f4d23638cedcec44629a571e06a14a6f3.tar.gz sonarqube-937ac93f4d23638cedcec44629a571e06a14a6f3.zip |
SONAR-6208 Sync rule activation between list and details
Diffstat (limited to 'server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profiles-view.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profiles-view.js | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profiles-view.js b/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profiles-view.js index b017aea8bcc..4c187693cf2 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profiles-view.js +++ b/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profiles-view.js @@ -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(); |