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;
|
return this.optionalModules.filter(m => m.is_enabled).length;
|
||||||
},
|
},
|
||||||
|
|
||||||
// Module icons mapping
|
// Module icons mapping (must match icons.js definitions)
|
||||||
getModuleIcon(moduleCode) {
|
getModuleIcon(moduleCode) {
|
||||||
const icons = {
|
const icons = {
|
||||||
'core': 'home',
|
'core': 'home',
|
||||||
'platform-admin': 'building-office',
|
'platform-admin': 'office-building',
|
||||||
'billing': 'credit-card',
|
'billing': 'credit-card',
|
||||||
'inventory': 'archive-box',
|
'inventory': 'archive',
|
||||||
'orders': 'shopping-cart',
|
'orders': 'shopping-cart',
|
||||||
'marketplace': 'shopping-bag',
|
'marketplace': 'shopping-bag',
|
||||||
'customers': 'users',
|
'customers': 'users',
|
||||||
'cms': 'document-text',
|
'cms': 'document-text',
|
||||||
'analytics': 'chart-bar',
|
'analytics': 'chart-bar',
|
||||||
'messaging': 'chat-bubble-left-right',
|
'messaging': 'chat',
|
||||||
'dev-tools': 'code-bracket',
|
'dev-tools': 'code',
|
||||||
'monitoring': 'chart-bar-square'
|
'monitoring': 'chart-pie'
|
||||||
};
|
};
|
||||||
return icons[moduleCode] || 'puzzle';
|
return icons[moduleCode] || 'puzzle-piece';
|
||||||
},
|
},
|
||||||
|
|
||||||
async init() {
|
async init() {
|
||||||
|
|||||||
Reference in New Issue
Block a user