diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-11-18 15:58:37 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-11-18 16:05:23 +0100 |
commit | 6d15151506a99d3849009a9f74717b2ca2790c08 (patch) | |
tree | b0e7452b36ddc897c5885daaa28f75bfb354e7b4 /server/sonar-web/src | |
parent | 7999f7c91097102c8abeb7bdd4506b7b0c770b12 (diff) | |
download | sonarqube-6d15151506a99d3849009a9f74717b2ca2790c08.tar.gz sonarqube-6d15151506a99d3849009a9f74717b2ca2790c08.zip |
SONAR-8374 disable assignee facet when "my issues" are displayed
Diffstat (limited to 'server/sonar-web/src')
-rw-r--r-- | server/sonar-web/src/main/js/apps/issues/facets/assignee-facet.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/facets/assignee-facet.js b/server/sonar-web/src/main/js/apps/issues/facets/assignee-facet.js index bea677a4290..535eceeca6c 100644 --- a/server/sonar-web/src/main/js/apps/issues/facets/assignee-facet.js +++ b/server/sonar-web/src/main/js/apps/issues/facets/assignee-facet.js @@ -42,6 +42,10 @@ export default CustomValuesFacet.extend({ onRender () { CustomValuesFacet.prototype.onRender.apply(this, arguments); + + const myIssuesSelected = !!this.options.app.state.get('query').assigned_to_me; + this.$el.toggleClass('hidden', myIssuesSelected); + const value = this.options.app.state.get('query').assigned; if ((value != null) && (!value || value === 'false')) { return this.$('.js-facet').filter('[data-unassigned]').addClass('active'); |