From 6b5535e60a6efec707be893cde4108b331553846 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 19 Feb 2024 00:45:00 +0330 Subject: some changes Co-Authored-By: Alireza Ahmadi --- web/html/xui/index.html | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'web/html/xui/index.html') diff --git a/web/html/xui/index.html b/web/html/xui/index.html index abd3b8d0..30ca4490 100644 --- a/web/html/xui/index.html +++ b/web/html/xui/index.html @@ -313,7 +313,7 @@ + :href="'data:application/text;charset=utf-8,' + encodeURIComponent(logModal.logs)" download="x-ui.log"> {{ i18n "download" }} x-ui.log @@ -446,16 +446,15 @@ const logModal = { visible: false, - logs: [], - formattedLogs: '', + logs: '', rows: 20, level: 'info', syslog: false, loading: false, show(logs) { this.visible = true; - this.logs = logs || []; - this.formattedLogs = this.logs.length > 0 ? this.formatLogs(this.logs) : "No Record..."; + this.logs = logs; + this.formattedLogs = this.logs?.length > 0 ? this.formatLogs(this.logs) : "No Record..."; }, formatLogs(logs) { let formattedLogs = ''; -- cgit v1.2.3