diff --git a/src/app/components/AvailableModulesMenu.jsx b/src/app/components/AvailableModulesMenu.jsx index 661483da..9485eac3 100644 --- a/src/app/components/AvailableModulesMenu.jsx +++ b/src/app/components/AvailableModulesMenu.jsx @@ -41,6 +41,13 @@ const GRPCAT = { 'mr': 'ordnance', 'tp': 'ordnance', 'nl': 'ordnance', + // Utilities + 'cs': 'scanners', + 'kw': 'scanners', + 'ws': 'scanners', + 'ch': 'defence', + 'po': 'defence', + 'ec': 'defence', }; // Order here is the order in which items will be shown in the modules menu const CATEGORIES = { @@ -64,12 +71,8 @@ const CATEGORIES = { // Utilities 'sb': ['sb'], 'hs': ['hs'], - 'ch': ['ch'], - 'po': ['po'], - 'ec': ['ec'], - 'cs': ['cs'], - 'kw': ['kw'], - 'ws': ['ws'], + 'defence': ['ch', 'po', 'ec'], + 'scanners': ['cs', 'kw', 'ws'], }; /** @@ -128,7 +131,9 @@ export default class AvailableModulesMenu extends TranslatedComponent { } else { list = []; // At present time slots with grouped options (Hardpoints and Internal) can be empty - list.push(
{translate('empty')}
); + if (m) { + list.push(
{translate('empty')}
); + } // Need to regroup the modules by our own categorisation let catmodules = {}; diff --git a/src/app/components/UtilitySlotSection.jsx b/src/app/components/UtilitySlotSection.jsx index 0351b4ab..95324219 100644 --- a/src/app/components/UtilitySlotSection.jsx +++ b/src/app/components/UtilitySlotSection.jsx @@ -99,11 +99,11 @@ export default class UtilitySlotSection extends SlotSection {
{translate('sb')}
{translate('hs')}