From b86e90de4b5072ccca066d2e107c2c06745ed27f Mon Sep 17 00:00:00 2001 From: Alex Williams Date: Sun, 2 Jun 2024 20:04:48 +0100 Subject: [PATCH] Issue 764 unknown modules are selectable (#11) * Adds valid module checking to all types of modules on import * Adds the Advanced MC's, AX MC's, AX MR's and Nanite Torpedo * Changes as per comments on the PR * Fixed 'Missing Module' category showing up in Optional Selection drop-down and fixed 'Missing Power Plant', 'Missing Power Distributor' and 'Missing Frameshift Drive' showing up in the Selection drop-downs for those module slots. --------- Co-authored-by: David Sangrey Co-authored-by: Felix Linker --- src/app/components/AvailableModulesMenu.jsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/app/components/AvailableModulesMenu.jsx b/src/app/components/AvailableModulesMenu.jsx index b3d99b5a..815cab51 100644 --- a/src/app/components/AvailableModulesMenu.jsx +++ b/src/app/components/AvailableModulesMenu.jsx @@ -340,7 +340,6 @@ export default class AvailableModulesMenu extends TranslatedComponent { disabled = 1 <= ship.internal.filter(o => o.m && o.m.grp === 'mlc').length; } let active = mountedModule && mountedModule.id === m.id; - let classes = cn(m.name ? 'lc' : 'c', { warning: !disabled && warningFunc && warningFunc(m), active,