From 5d6358d96cfa827cc58f4b2d16599bcbfa8c7ac4 Mon Sep 17 00:00:00 2001 From: Mator Date: Tue, 15 Nov 2016 20:08:49 -0800 Subject: [PATCH] sorting mod list plugins now references plugin is_esm flag --- mod-picker/app/assets/javascripts/Services/sortUtils.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mod-picker/app/assets/javascripts/Services/sortUtils.js b/mod-picker/app/assets/javascripts/Services/sortUtils.js index 2ba37016d..1c8eee491 100644 --- a/mod-picker/app/assets/javascripts/Services/sortUtils.js +++ b/mod-picker/app/assets/javascripts/Services/sortUtils.js @@ -100,8 +100,7 @@ app.service('sortUtils', function($q, categoryService, colorsFactory, modListSer groups[0].children.push(item); } // non-official ESMs go into the ESMs group - else if (handlingPlugins && plugin.filename.endsWith('.esm')) { - // TODO: Check ESM flag instead once we have it + else if (handlingPlugins && plugin.is_esm) { groups[1].children.push(item); } // for everything else we create groups based on the primary category of the mod