Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShishkevich D. <135337715+shishkevichd@users.noreply.github.com>2025-04-08 18:17:29 +0300
committerGitHub <noreply@github.com>2025-04-08 18:17:29 +0300
commit8ef447a997aa3ad0e2f333b1b71c2cbc91a40395 (patch)
treedd95a15bdc3f988d240b25c422b0c03caf8bc3c3 /web/html/index.html
parent520f7a2d15faae41b2ae33d09fb4af8a499aebef (diff)
chore: create `FileManager` class for downloading files
Diffstat (limited to 'web/html/index.html')
-rw-r--r--web/html/index.html4
1 files changed, 1 insertions, 3 deletions
diff --git a/web/html/index.html b/web/html/index.html
index 1be7df13..574fc539 100644
--- a/web/html/index.html
+++ b/web/html/index.html
@@ -400,9 +400,7 @@
<a-checkbox v-model="logModal.syslog" @change="openLogs()">SysLog</a-checkbox>
</a-form-item>
<a-form-item :style="{ float: 'right' }">
- <a-button type="primary" icon="download"
- :href="'data:application/text;charset=utf-8,' + encodeURIComponent(logModal.logs?.join('\n'))" download="x-ui.log">
- </a-button>
+ <a-button type="primary" icon="download" @click="FileManager.downloadTextFile(logModal.logs?.join('\n'), 'x-ui.log')"></a-button>
</a-form-item>
</a-form>
<div class="ant-input" :style="{ height: 'auto', maxHeight: '500px', overflow: 'auto', marginTop: '0.5rem' }" v-html="logModal.formattedLogs"></div>