mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
chore: ⬆️ Update @lysand-org/client for new types
This commit is contained in:
parent
18b4bc64b3
commit
a889f8d142
10 changed files with 19 additions and 15 deletions
|
|
@ -19,8 +19,10 @@
|
|||
</div>
|
||||
<div v-if="notification?.type === 'follow_request' && relationship?.requested_by"
|
||||
class="w-full grid grid-cols-2 gap-4 p-2 ">
|
||||
<ButtonsPrimary :loading="isWorkingOnFollowRequest" @click="acceptFollowRequest"><span>Accept</span></ButtonsPrimary>
|
||||
<ButtonsSecondary :loading="isWorkingOnFollowRequest" @click="rejectFollowRequest"><span>Reject</span></ButtonsSecondary>
|
||||
<ButtonsPrimary :loading="isWorkingOnFollowRequest" @click="acceptFollowRequest"><span>Accept</span>
|
||||
</ButtonsPrimary>
|
||||
<ButtonsSecondary :loading="isWorkingOnFollowRequest" @click="rejectFollowRequest"><span>Reject</span>
|
||||
</ButtonsSecondary>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -47,7 +49,7 @@ const acceptFollowRequest = async () => {
|
|||
const { data } = await client.value.acceptFollowRequest(
|
||||
props.notification.account.id,
|
||||
);
|
||||
relationship.value = data as Relationship;
|
||||
relationship.value = data;
|
||||
isWorkingOnFollowRequest.value = false;
|
||||
};
|
||||
|
||||
|
|
@ -57,7 +59,7 @@ const rejectFollowRequest = async () => {
|
|||
const { data } = await client.value.rejectFollowRequest(
|
||||
props.notification.account.id,
|
||||
);
|
||||
relationship.value = data as Relationship;
|
||||
relationship.value = data;
|
||||
isWorkingOnFollowRequest.value = false;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue