APmanageur Wi-Fi V1.1 (Bêta)
This commit is contained in:
1 parent
4ab701ee58
commit
da07838fda
4 files changed
+169
-139
No files matched your search
+7
-1
@@ -69,6 +69,9 @@
|
||||
.then(function (r) { return r.json(); })
|
||||
.then(function (d) {
|
||||
if (d) {
|
||||
if (d.version) {
|
||||
document.querySelectorAll('.app-version').forEach(function (el) { el.textContent = d.version; });
|
||||
}
|
||||
var alreadyConfigured = !!(d.configured || d.setup_completed);
|
||||
if (alreadyConfigured) {
|
||||
window.location.replace('/');
|
||||
@@ -1032,7 +1035,7 @@
|
||||
</h1>
|
||||
<div class="sub">
|
||||
<span class="app-short-title">AP Manageur</span>
|
||||
<span class="pill" style="margin-left:6px;font-size:11px">V1.1 (Béta)</span>
|
||||
<span class="pill app-version" style="margin-left:6px;font-size:11px">V1.1 (Béta)</span>
|
||||
<span class="pill" style="margin-left:4px;font-size:11px;color:var(--blue);border-color:var(--blue)"
|
||||
data-i18n="app_badge_setup">Configuration initiale</span>
|
||||
</div>
|
||||
@@ -4119,6 +4122,9 @@
|
||||
const rAuth = await fetch(API_URL + '/api/auth/status', { cache: 'no-store' });
|
||||
if (rAuth.ok) {
|
||||
const dAuth = await rAuth.json();
|
||||
if (dAuth.version) {
|
||||
document.querySelectorAll('.app-version').forEach(el => el.textContent = dAuth.version);
|
||||
}
|
||||
authConfigured = !!dAuth.configured;
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
const isForced = params.has('force') || params.has('reconfigure');
|
||||
|
||||
Reference in new issue
Block a user