mirror of
https://github.com/w0rng/amnezia-wg-easy.git
synced 2025-04-26 13:20:11 +03:00
usage -> traffic
This commit is contained in:
parent
117d713ee1
commit
ebc5173bd0
7 changed files with 17 additions and 17 deletions
|
@ -53,7 +53,7 @@ new Vue({
|
|||
latestRelease: null,
|
||||
|
||||
isDark: null,
|
||||
uiUsageStats: false,
|
||||
uiTrafficStats: false,
|
||||
|
||||
chartOptions: {
|
||||
chart: {
|
||||
|
@ -293,13 +293,13 @@ new Vue({
|
|||
}).catch(console.error);
|
||||
}, 1000);
|
||||
|
||||
this.api.getuiUsageStats()
|
||||
this.api.getuiTrafficStats()
|
||||
.then((res) => {
|
||||
this.uiUsageStats = res;
|
||||
this.uiTrafficStats = res;
|
||||
})
|
||||
.catch(() => {
|
||||
console.log('Failed to get ui-usage-stats');
|
||||
this.uiUsageStats = false;
|
||||
console.log('Failed to get ui-traffic-stats');
|
||||
this.uiTrafficStats = false;
|
||||
});
|
||||
|
||||
Promise.resolve().then(async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue