Skip to content

Commit f5565c1

Browse files
author
Lasim
committed
refactor: remove edit view and replace with view functionality for MCP server catalog
- Deleted the edit view component for MCP server catalog. - Updated the index view to navigate to the new view component instead of edit. - Added a new view component to display server details with delete functionality.
1 parent 7fc98b6 commit f5565c1

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

services/frontend/src/i18n/locales/en/mcp-catalog.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default {
2727
edit: 'Edit',
2828
delete: 'Delete',
2929
view: 'View Details',
30+
manage: 'Manage',
3031
feature: 'Feature',
3132
unfeature: 'Unfeature'
3233
}

services/frontend/src/router/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ const routes = [
150150
component: () => import('../views/admin/mcp-server-catalog/add.vue'),
151151
},
152152
{
153-
path: 'mcp-server-catalog/edit/:id',
154-
name: 'AdminMcpServerCatalogEdit',
155-
component: () => import('../views/admin/mcp-server-catalog/edit/[id].vue'),
153+
path: 'mcp-server-catalog/view/:id',
154+
name: 'AdminMcpServerCatalogView',
155+
component: () => import('../views/admin/mcp-server-catalog/view/[id].vue'),
156156
},
157157
{
158158
path: 'mcp-categories',

services/frontend/src/views/admin/mcp-server-catalog/McpServerTableColumns.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ const sortedServers = computed(() => {
200200
class="h-8"
201201
>
202202
<Edit class="h-4 w-4 mr-2" />
203-
{{ t('mcpCatalog.table.actions.edit') }}
203+
{{ t('mcpCatalog.table.actions.manage') }}
204204
</Button>
205205
</TableCell>
206206
</TableRow>

services/frontend/src/views/admin/mcp-server-catalog/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const handleAddServer = () => {
7676
}
7777
7878
const handleEditServer = (serverId: string) => {
79-
router.push(`/admin/mcp-server-catalog/edit/${serverId}`)
79+
router.push(`/admin/mcp-server-catalog/view/${serverId}`)
8080
}
8181
8282
const handleToggleFeatured = async (serverId: string, featured: boolean) => {

services/frontend/src/views/admin/mcp-server-catalog/edit/[id].vue renamed to services/frontend/src/views/admin/mcp-server-catalog/view/[id].vue

File renamed without changes.

0 commit comments

Comments
 (0)