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/settings.html | |
| parent | c61575ac9aca81b9b17fbcdb9f8a66195466abab (diff) | |
SSL Security Alert
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/xui/settings.html')
| -rw-r--r-- | web/html/xui/settings.html | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html index 533553c5..a7c72f73 100644 --- a/web/html/xui/settings.html +++ b/web/html/xui/settings.html @@ -75,6 +75,15 @@ <a-layout id="content-layout"> <a-layout-content> <a-spin :spinning="spinning" :delay="500" tip='{{ i18n "loading"}}'> + <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> <a-space direction="vertical"> <a-card hoverable style="margin-bottom: .5rem; overflow-x: hidden;"> <a-row style="display: flex; flex-wrap: wrap; align-items: center;"> @@ -444,12 +453,15 @@ }, }, async mounted() { + if (window.location.protocol !== "https:") { + this.showAlert = true; + } await this.getAllSetting(); while (true) { - await PromiseUtil.sleep(600); + await PromiseUtil.sleep(1000); this.saveBtnDisable = this.oldAllSetting.equals(this.allSetting); } - }, + } }); </script> </body> |
