mirror of
https://github.com/w0rng/amnezia-wg-easy.git
synced 2025-04-26 13:20:11 +03:00
Add UI_DETAILED_STATS variable
Show detailed RX / TX stats when UI_DETAILED_STATS = true Add api method to get UI_DETAILED_STATS value on frontend
This commit is contained in:
parent
a1fdc610ad
commit
fa392cf260
5 changed files with 39 additions and 8 deletions
|
@ -53,6 +53,7 @@ new Vue({
|
|||
latestRelease: null,
|
||||
|
||||
isDark: null,
|
||||
uiDetailedStats: false,
|
||||
|
||||
chartOptions: {
|
||||
chart: {
|
||||
|
@ -299,6 +300,8 @@ new Vue({
|
|||
i18n.locale = lang;
|
||||
}
|
||||
|
||||
this.uiDetailedStats = await this.api.getUiDetailedStats();
|
||||
|
||||
const currentRelease = await this.api.getRelease();
|
||||
const latestRelease = await fetch('https://wg-easy.github.io/wg-easy/changelog.json')
|
||||
.then((res) => res.json())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue