We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31d978e commit ba0a8f5Copy full SHA for ba0a8f5
1 file changed
public/js/index.js
@@ -1163,6 +1163,9 @@ ui.toolbar.export.snippet.click(function() {
1163
return (a.path_with_namespace < b.path_with_namespace) ? -1 : ((a.path_with_namespace > b.path_with_namespace) ? 1 : 0);
1164
});
1165
data.projects.forEach(function(project) {
1166
+ if (!project.snippets_enabled) {
1167
+ return;
1168
+ }
1169
$('<option>').val(project.id).text(project.path_with_namespace).appendTo("#snippetExportModalProjects");
1170
1171
$("#snippetExportModalProjects").prop('disabled',false);
0 commit comments