silenced the superuser ips confirmation if there is no change

This commit is contained in:
Gani Georgiev
2026-05-07 22:57:45 +03:00
parent d438c6a96a
commit 1b5ea9a1fa
4 changed files with 13 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
## v0.38.1 (WIP)
- Silenced the superuser IPs confirmation if there is no change.
## v0.38.0
- Fixed UI logs pagination when no custom range is specified.

View File

File diff suppressed because one or more lines are too long

2
ui/dist/index.html vendored
View File

@@ -13,7 +13,7 @@
<!-- prism -->
<script src="./libs/prism/prism.js" data-manual></script>
<script type="module" crossorigin src="./assets/index-5KAeUg7B.js"></script>
<script type="module" crossorigin src="./assets/index-fOxZ9qpE.js"></script>
<link rel="modulepreload" crossorigin href="./assets/pocketbase.es-B_4DUNUU.js">
<link rel="stylesheet" crossorigin href="./assets/index-DR1PnFnr.css">
</head>

View File

@@ -47,9 +47,14 @@ export function pageApplicationSettings() {
}
async function saveWithConfirm() {
const oldSuperuserIPs = app.utils.toArray(data.originalFormSettings?.superuserIPs);
const superuserIPs = app.utils.toArray(data.formSettings?.superuserIPs);
if (!superuserIPs.length) {
if (
!superuserIPs.length
// no change
|| JSON.stringify(oldSuperuserIPs) == JSON.stringify(superuserIPs)
) {
return save();
}