diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-02-21 11:36:49 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-02-21 11:36:49 +0300 |
| commit | f3eb4f055db80372298d60c073870a5af1431785 (patch) | |
| tree | b7314d9dda7bc6ec4fee55ac9e72945b195d00a7 /web/html/xui/index.html | |
| parent | c61575ac9aca81b9b17fbcdb9f8a66195466abab (diff) | |
SSL Security Alert
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/xui/index.html')
| -rw-r--r-- | web/html/xui/index.html | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/web/html/xui/index.html b/web/html/xui/index.html index 30ca4490..1bc0dfa4 100644 --- a/web/html/xui/index.html +++ b/web/html/xui/index.html @@ -35,6 +35,15 @@ <a-layout-content> <a-spin :spinning="spinning" :delay="200" :tip="loadingTip"/> <transition name="list" appear> + <a-alert type="error" v-if="showAlert" style="margin-bottom: 10px" + message='{{ i18n "secAlertTitle" }}' + color="red" + description='{{ i18n "secAlertSsl" }}' + show-icon closable + > + </a-alert> + </transition> + <transition name="list" appear> <a-row> <a-card hoverable> <a-row> @@ -532,6 +541,7 @@ backupModal, spinning: false, loadingTip: '{{ i18n "loading"}}', + showAlert: false, }, methods: { loading(spinning, tip = '{{ i18n "loading"}}') { @@ -655,14 +665,14 @@ }, }, async mounted() { - let retries = 0; - while (retries < 5) { + if (window.location.protocol !== "https:") { + this.showAlert = true; + } + while (true) { try { await this.getStatus(); - retries = 0; } catch (e) { - console.error("Error occurred while fetching status:", e); - retries++; + console.error(e); } await PromiseUtil.sleep(2000); } |
