Skip to content

Commit 10ac4f7

Browse files
refactor(core): move ITeam into contacts menu types
Assisted-by: Cursor:Composer Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 3c96943 commit 10ac4f7

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

core/src/types/contactsMenu.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ export interface IPreviewUser {
88
fullName: string
99
isUser: boolean
1010
}
11+
12+
export interface ITeam {
13+
teamId: string
14+
displayName: string
15+
link: string
16+
}

core/src/views/ContactsMenu.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
-->
55

66
<script setup lang="ts">
7-
import type { IPreviewUser } from '../types/contactsMenu.ts'
7+
import type { IPreviewUser, ITeam } from '../types/contactsMenu.ts'
88
99
import { mdiAccountGroupOutline, mdiContacts, mdiMagnify } from '@mdi/js'
1010
import { getCurrentUser } from '@nextcloud/auth'
@@ -154,11 +154,7 @@ function focusInput() {
154154
</script>
155155

156156
<script lang="ts">
157-
interface ITeam {
158-
teamId: string
159-
displayName: string
160-
link: string
161-
}
157+
import type { ITeam } from '../types/contactsMenu.ts'
162158
163159
const userTeams: ITeam[] = []
164160
</script>

0 commit comments

Comments
 (0)