From ba0a8f584a0655552e3ed95cd5ef006eeb408eef Mon Sep 17 00:00:00 2001 From: Jason Croft Date: Thu, 12 May 2016 14:26:55 -0400 Subject: Filter out projects that don't have snippets enabled. --- public/js/index.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'public/js/index.js') diff --git a/public/js/index.js b/public/js/index.js index bdb9d478..fbaf95fb 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1163,6 +1163,9 @@ ui.toolbar.export.snippet.click(function() { return (a.path_with_namespace < b.path_with_namespace) ? -1 : ((a.path_with_namespace > b.path_with_namespace) ? 1 : 0); }); data.projects.forEach(function(project) { + if (!project.snippets_enabled) { + return; + } $('