summaryrefslogtreecommitdiff
path: root/packages/client/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-07-01 00:38:20 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-07-01 00:38:20 +0900
commit649bb672df2b1d39b50f5a44bba1f0c1d3068ea2 (patch)
tree7ea2e6f048ce84690a6f1adb2a87f46aeba32fc0 /packages/client/src
parent12.112.0-beta.10 (diff)
downloadsharkey-649bb672df2b1d39b50f5a44bba1f0c1d3068ea2.tar.gz
sharkey-649bb672df2b1d39b50f5a44bba1f0c1d3068ea2.tar.bz2
sharkey-649bb672df2b1d39b50f5a44bba1f0c1d3068ea2.zip
chore(client): fix pie rendering
Diffstat (limited to 'packages/client/src')
-rw-r--r--packages/client/src/pages/admin/overview.vue8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/client/src/pages/admin/overview.vue b/packages/client/src/pages/admin/overview.vue
index d2fa4e0e45..f44bba27fd 100644
--- a/packages/client/src/pages/admin/overview.vue
+++ b/packages/client/src/pages/admin/overview.vue
@@ -413,22 +413,22 @@ onMounted(async () => {
});
os.apiGet('federation/stats', { limit: 10 }).then(res => {
- topSubInstancesForPie = fedStats.topSubInstances.map(x => ({
+ topSubInstancesForPie = res.topSubInstances.map(x => ({
name: x.host,
color: x.themeColor,
value: x.followersCount,
onClick: () => {
os.pageWindow(`/instance-info/${x.host}`);
},
- })).concat([{ name: '(other)', color: '#80808080', value: fedStats.otherFollowersCount }]);
- topPubInstancesForPie = fedStats.topPubInstances.map(x => ({
+ })).concat([{ name: '(other)', color: '#80808080', value: res.otherFollowersCount }]);
+ topPubInstancesForPie = res.topPubInstances.map(x => ({
name: x.host,
color: x.themeColor,
value: x.followingCount,
onClick: () => {
os.pageWindow(`/instance-info/${x.host}`);
},
- })).concat([{ name: '(other)', color: '#80808080', value: fedStats.otherFollowingCount }]);
+ })).concat([{ name: '(other)', color: '#80808080', value: res.otherFollowingCount }]);
});
os.api('admin/server-info').then(serverInfoResponse => {