@samitouri / QOSami-HFS / commits / 6d9d0658

fix: admin/logs: download button wasn't disabled for IP's

Massimo Melina committed May 31, 2024 at 17:16 UTC 6d9d0658d1c727ac43953edad158abf7b41650d9
1 file changed +2 -2
admin/src/LogsPage.ts
+2 -2
@@ -23,7 +23,7 @@ const logLabels = {
23 log: "Access",
24 error_log: "Access error",
25 console: "Console",
26 - ips: "IPs",
26 + ips: "IP's",
27 }
28
29 let reloadIps: any
@@ -33,7 +33,7 @@ export default function LogsPage() {
33 const files = typedKeys(logLabels)
34 const shorterLabels = !useBreakpoint('sm') && { error_log: "Errors" }
35 const file = files[tab]
36 - const fileAvailable = file !== 'console'
36 + const fileAvailable = file.endsWith('log')
37 return h(Fragment, {},
38 h(Flex, { gap: 0 },
39 h(Tabs, { value: tab, onChange(ev,i){ setTab(i) } },