aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers/handlebars/eqComponents.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/handlebars/eqComponents.js')
-rw-r--r--server/sonar-web/src/main/js/helpers/handlebars/eqComponents.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/helpers/handlebars/eqComponents.js b/server/sonar-web/src/main/js/helpers/handlebars/eqComponents.js
new file mode 100644
index 00000000000..ed5ac68bf35
--- /dev/null
+++ b/server/sonar-web/src/main/js/helpers/handlebars/eqComponents.js
@@ -0,0 +1,4 @@
+module.exports = function (a, b, options) {
+ var notEq = a && b && ((a.project !== b.project) || (a.subProject !== b.subProject));
+ return notEq ? options.inverse(this) : options.fn(this);
+};