mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
change name of dynamic statitics fields
This commit is contained in:
parent
9f3c43426d
commit
1e66cda707
@ -7,7 +7,7 @@ export const communityStatistics = gql`
|
|||||||
deletedUsers
|
deletedUsers
|
||||||
totalGradidoCreated
|
totalGradidoCreated
|
||||||
totalGradidoDecayed
|
totalGradidoDecayed
|
||||||
totalAvailable {
|
dynamicStatisticsFields {
|
||||||
activeUsers
|
activeUsers
|
||||||
totalGradidoAvailable
|
totalGradidoAvailable
|
||||||
totalGradidoUnbookedDecayed
|
totalGradidoUnbookedDecayed
|
||||||
|
|||||||
@ -20,7 +20,7 @@ const defaultData = () => {
|
|||||||
deletedUsers: 35,
|
deletedUsers: 35,
|
||||||
totalGradidoCreated: '4083774.05000000000000000000',
|
totalGradidoCreated: '4083774.05000000000000000000',
|
||||||
totalGradidoDecayed: '-1062639.13634129622923372197',
|
totalGradidoDecayed: '-1062639.13634129622923372197',
|
||||||
totalAvailable: {
|
dynamicStatisticsFields: {
|
||||||
activeUsers: 1057,
|
activeUsers: 1057,
|
||||||
totalGradidoAvailable: '2513565.869444365732411569',
|
totalGradidoAvailable: '2513565.869444365732411569',
|
||||||
totalGradidoUnbookedDecayed: '-500474.6738366222166261272',
|
totalGradidoUnbookedDecayed: '-500474.6738366222166261272',
|
||||||
|
|||||||
@ -31,9 +31,9 @@ export default {
|
|||||||
return communityStatistics
|
return communityStatistics
|
||||||
},
|
},
|
||||||
update({ communityStatistics }) {
|
update({ communityStatistics }) {
|
||||||
const totals = { ...communityStatistics.totalAvailable }
|
const totals = { ...communityStatistics.dynamicStatisticsFields }
|
||||||
this.statistics = { ...communityStatistics, ...totals }
|
this.statistics = { ...communityStatistics, ...totals }
|
||||||
delete this.statistics.totalAvailable
|
delete this.statistics.dynamicStatisticsFields
|
||||||
},
|
},
|
||||||
error({ message }) {
|
error({ message }) {
|
||||||
this.toastError(message)
|
this.toastError(message)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user