diff options
Diffstat (limited to '')
-rw-r--r-- | public/js/index.js | 3 |
1 files changed, 3 insertions, 0 deletions
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; + } $('<option>').val(project.id).text(project.path_with_namespace).appendTo("#snippetExportModalProjects"); }); $("#snippetExportModalProjects").prop('disabled',false); |