@@ -3,7 +3,6 @@ import { ref, onMounted, computed } from 'vue'
33import { useRoute , useRouter } from ' vue-router'
44import { useI18n } from ' vue-i18n'
55import { Button } from ' @/components/ui/button'
6- import { Card , CardContent } from ' @/components/ui/card'
76import { ArrowLeft , Info , Settings , Shield } from ' lucide-vue-next'
87import { DsTabs , DsTabsItem } from ' @/components/ui/ds-tabs'
98import 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 = () => {
119118const 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}
0 commit comments