mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
fix: i have taken over and implemented the proposals from tirrok
This commit is contained in:
parent
9b14a5327a
commit
1c1a0030f7
@ -15,9 +15,9 @@
|
||||
$t(
|
||||
'settings.deleteUserAccount.contributionsCount',
|
||||
{
|
||||
count: currentUserCount.contributionsCount,
|
||||
count: currentUserCounts.contributionsCount,
|
||||
},
|
||||
currentUserCount.contributionsCount,
|
||||
currentUserCounts.contributionsCount,
|
||||
)
|
||||
}}
|
||||
</label>
|
||||
@ -27,9 +27,9 @@
|
||||
$t(
|
||||
'settings.deleteUserAccount.commentedCount',
|
||||
{
|
||||
count: currentUserCount.commentedCount,
|
||||
count: currentUserCounts.commentedCount,
|
||||
},
|
||||
currentUserCount.commentedCount,
|
||||
currentUserCounts.commentedCount,
|
||||
)
|
||||
}}
|
||||
</label>
|
||||
@ -61,7 +61,7 @@ export default {
|
||||
deleteContributions: false,
|
||||
deleteComments: false,
|
||||
enableDeletionValue: null,
|
||||
currentUserCount: [],
|
||||
currentUserCounts: {},
|
||||
}
|
||||
},
|
||||
apollo: {
|
||||
@ -70,7 +70,7 @@ export default {
|
||||
return currentUserCountQuery()
|
||||
},
|
||||
update(currentUser) {
|
||||
this.currentUserCount = currentUser.currentUser
|
||||
this.currentUserCounts = currentUser.currentUser
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@ -265,11 +265,9 @@ export const checkSlugAvailableQuery = gql`
|
||||
|
||||
export const currentUserQuery = gql`
|
||||
${userFragment}
|
||||
${userCountsFragment}
|
||||
query {
|
||||
currentUser {
|
||||
...user
|
||||
...userCounts
|
||||
email
|
||||
role
|
||||
about
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user