From 6d15151506a99d3849009a9f74717b2ca2790c08 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 18 Nov 2016 15:58:37 +0100 Subject: [PATCH] SONAR-8374 disable assignee facet when "my issues" are displayed --- .../src/main/js/apps/issues/facets/assignee-facet.js | 4 ++++ 1 file changed, 4 insertions(+) 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'); -- 2.39.5