feat: add model groups dashboard page with CRUD UI
This commit is contained in:
@@ -119,6 +119,7 @@ class Dashboard {
|
||||
'settings': 'Settings',
|
||||
'logs': 'Logs',
|
||||
'models': 'Models',
|
||||
'model-groups': 'Model Groups',
|
||||
'users': 'User Management'
|
||||
};
|
||||
if (titleElement) titleElement.textContent = titles[page] || 'Dashboard';
|
||||
@@ -130,6 +131,11 @@ class Dashboard {
|
||||
if (content) {
|
||||
content.innerHTML = await this.getPageTemplate(page);
|
||||
await this.initializePageScript(page);
|
||||
|
||||
// Model Groups page uses its own render method
|
||||
if (page === 'model-groups' && typeof modelGroupsPage !== 'undefined') {
|
||||
await modelGroupsPage.render();
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(`Error loading page ${page}:`, error);
|
||||
|
||||
Reference in New Issue
Block a user