feat: finish profile popup
Some checks failed
ci/woodpecker/push/build-and-publish Pipeline failed

This commit is contained in:
Twig 2025-07-19 16:54:05 +02:00
parent b5857b706f
commit ce306a2f72
No known key found for this signature in database
2 changed files with 16 additions and 8 deletions

View file

@ -1,5 +1,5 @@
<template>
<ModalBase :obscure="true">
<ModalBase :obscure="true" :onClose="props.whendone" :onCloseButton="props.whendone">
<div id="profile-container">
<div id="profile-header">
<div id="header-mask"></div>
@ -65,10 +65,12 @@ import Button from '../UserInterface/Button.vue';
const { addFriend, fetchMe } = useApi();
const props = defineProps<ModalProps & {
profile: GuildMemberResponse
profile: GuildMemberResponse,
whendone: any
}>();
const friendsSinceRequest = await getFriendsSince(props.profile)
const me = await fetchMe() as UserResponse
const displayName = getDisplayName(props.profile)
const username = getUsername(props.profile)
@ -80,7 +82,7 @@ const joinDate = getGuildJoinDate(props.profile)
const friendsSince = friendsSinceRequest
const uuid = getUuid(props.profile)
const me = await fetchMe() as UserResponse
function toDateString(date: Date): string {
return date.toLocaleDateString(undefined, { day: '2-digit', month: 'short', year: 'numeric' })