From bb2e8d2751784d22a4af18db6103340345c16bd8 Mon Sep 17 00:00:00 2001 From: Vadim Babajanyan Date: Fri, 16 Aug 2024 21:47:31 +0300 Subject: [PATCH] Fix sort clients (#1290) Co-authored-by: Vadim Babadzhanyan --- src/lib/Server.js | 6 +++--- src/www/index.html | 25 +++++++++++++++---------- src/www/js/app.js | 17 ++++++++++++----- 3 files changed, 30 insertions(+), 18 deletions(-) diff --git a/src/lib/Server.js b/src/lib/Server.js index aeaff6c..5678043 100644 --- a/src/lib/Server.js +++ b/src/lib/Server.js @@ -92,7 +92,7 @@ module.exports = class Server { .get('/api/ui-traffic-stats', defineEventHandler((event) => { setHeader(event, 'Content-Type', 'application/json'); - return `"${UI_TRAFFIC_STATS}"`; + return `${UI_TRAFFIC_STATS}`; })) .get('/api/ui-chart-type', defineEventHandler((event) => { @@ -102,12 +102,12 @@ module.exports = class Server { .get('/api/ui-show-links', defineEventHandler((event) => { setHeader(event, 'Content-Type', 'application/json'); - return `"${UI_SHOW_LINKS}"`; + return `${UI_SHOW_LINKS}`; })) .get('/api/ui-sort-clients', defineEventHandler((event) => { setHeader(event, 'Content-Type', 'application/json'); - return `"${UI_ENABLE_SORT_CLIENTS}"`; + return `${UI_ENABLE_SORT_CLIENTS}`; })) // Authentication diff --git a/src/www/index.html b/src/www/index.html index 3dd7030..34bf718 100644 --- a/src/www/index.html +++ b/src/www/index.html @@ -113,13 +113,18 @@ {{$t("backup")}} -
- -
+