fix: correct icon names in platform-modules.js
Map module icons to available icons in icons.js: - building-office → office-building - archive-box → archive - chat-bubble-left-right → chat - code-bracket → code - chart-bar-square → chart-pie - puzzle (fallback) → puzzle-piece Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -39,23 +39,23 @@ function adminPlatformModules(platformCode) {
|
||||
return this.optionalModules.filter(m => m.is_enabled).length;
|
||||
},
|
||||
|
||||
// Module icons mapping
|
||||
// Module icons mapping (must match icons.js definitions)
|
||||
getModuleIcon(moduleCode) {
|
||||
const icons = {
|
||||
'core': 'home',
|
||||
'platform-admin': 'building-office',
|
||||
'platform-admin': 'office-building',
|
||||
'billing': 'credit-card',
|
||||
'inventory': 'archive-box',
|
||||
'inventory': 'archive',
|
||||
'orders': 'shopping-cart',
|
||||
'marketplace': 'shopping-bag',
|
||||
'customers': 'users',
|
||||
'cms': 'document-text',
|
||||
'analytics': 'chart-bar',
|
||||
'messaging': 'chat-bubble-left-right',
|
||||
'dev-tools': 'code-bracket',
|
||||
'monitoring': 'chart-bar-square'
|
||||
'messaging': 'chat',
|
||||
'dev-tools': 'code',
|
||||
'monitoring': 'chart-pie'
|
||||
};
|
||||
return icons[moduleCode] || 'puzzle';
|
||||
return icons[moduleCode] || 'puzzle-piece';
|
||||
},
|
||||
|
||||
async init() {
|
||||
|
||||
Reference in New Issue
Block a user