diff --git a/components/profile/adminPanel.vue b/components/profile/adminPanel.vue index 3d920b8..1a3a123 100644 --- a/components/profile/adminPanel.vue +++ b/components/profile/adminPanel.vue @@ -7,6 +7,10 @@ const short = props.user?.profile.isAdmin; const showBanUnban = ref(false); const showDemote = ref(false); + const { data: commonIps } = await useApiFetch<{ + [key: string]: { _id: number; username: string }[]; + }>(`/user/${props.user!._id}/shared-ip`); + const handle = async () => { await useApiFetch(`/user/${props.user?._id}/ban`, { method: "post", @@ -48,7 +52,25 @@