Skip to content
Snippets Groups Projects
Commit 88b2c4b7 authored by Eric Poirier's avatar Eric Poirier
Browse files

Add default project's category


Signed-off-by: default avatarEric Poirier <eric.poirier@eclipse-foundation.org>
parent 8e5a5546
No related branches found
No related tags found
No related merge requests found
......@@ -266,7 +266,7 @@ const EclipseProjectList = (function ($) {
var getCategories = function() {
var categories = {
"ecd.cdt.cloud": "Cloud IDE",
"ecd.cdt.cloud": "Other Tools",
"ecd.che": "Cloud IDE",
"ecd.che.che4z": "Extension Marketplace",
"ecd.codewind": "IDE-Agnostic Library",
......@@ -285,10 +285,11 @@ const EclipseProjectList = (function ($) {
var getCategory = function(project_id) {
var categories = getCategories();
let category = "Other Tools";
if (typeof categories[project_id] !== "undefined") {
return categories[project_id];
category = categories[project_id];
}
return "";
return category;
}
})(jQuery);
// The global jQuery object is passed as a parameter
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment