Skip to content

Commit fd410d1

Browse files
author
Lasim
committed
refactor(frontend): remove unused imports from installation views
1 parent 24cefe7 commit fd410d1

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

services/frontend/src/views/mcp-server/installation/[id].vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { ref, onMounted, computed } from 'vue'
33
import { useRoute, useRouter } from 'vue-router'
44
import { useI18n } from 'vue-i18n'
55
import { Button } from '@/components/ui/button'
6-
import { Card, CardContent } from '@/components/ui/card'
76
import { ArrowLeft, Info, Settings, Shield } from 'lucide-vue-next'
87
import { DsTabs, DsTabsItem } from '@/components/ui/ds-tabs'
98
import DashboardLayout from '@/components/DashboardLayout.vue'
@@ -33,7 +32,7 @@ async function loadInstallationWithTeamContext(installationId: string): Promise<
3332
try {
3433
// Get selected team from storage
3534
const selectedTeamId = eventBus.getState<string>('selected_team_id')
36-
35+
3736
if (!selectedTeamId) {
3837
console.warn('No team selected in storage')
3938
return null
@@ -42,15 +41,15 @@ async function loadInstallationWithTeamContext(installationId: string): Promise<
4241
// Get user's teams to find the selected team with role information
4342
const userTeams = await TeamService.getUserTeams()
4443
const selectedTeam = userTeams.find(team => team.id === selectedTeamId)
45-
44+
4645
if (!selectedTeam) {
4746
console.warn('Selected team not found in user teams')
4847
return null
4948
}
5049
5150
// Load installation from the selected team
5251
const installation = await McpInstallationService.getInstallationById(selectedTeam.id, installationId)
53-
52+
5453
if (!installation) {
5554
return null
5655
}
@@ -119,7 +118,7 @@ const goBack = () => {
119118
const handleInstallationUpdated = (updatedInstallation: McpInstallation) => {
120119
// Update the local installation data
121120
installation.value = updatedInstallation
122-
121+
123122
// Emit general installations updated event for other components that might need to refresh
124123
eventBus.emit('mcp-installations-updated')
125124
}

services/frontend/src/views/teams/manage/[id].vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { ref, onMounted, onUnmounted, computed, watch } from 'vue'
33
import { useI18n } from 'vue-i18n'
44
import { useRoute, useRouter } from 'vue-router'
55
import { Button } from '@/components/ui/button'
6-
import { Card, CardContent } from '@/components/ui/card'
76
import { Alert, AlertDescription } from '@/components/ui/alert'
87
import { ArrowLeft, Info, Users, Shield, Loader2, AlertTriangle } from 'lucide-vue-next'
98
import { DsTabs, DsTabsItem } from '@/components/ui/ds-tabs'

0 commit comments

Comments
 (0)