silenced the superuser ips confirmation if there is no change
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
## v0.38.1 (WIP)
|
||||||
|
|
||||||
|
- Silenced the superuser IPs confirmation if there is no change.
|
||||||
|
|
||||||
|
|
||||||
## v0.38.0
|
## v0.38.0
|
||||||
|
|
||||||
- Fixed UI logs pagination when no custom range is specified.
|
- Fixed UI logs pagination when no custom range is specified.
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
<!-- prism -->
|
<!-- prism -->
|
||||||
<script src="./libs/prism/prism.js" data-manual></script>
|
<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="modulepreload" crossorigin href="./assets/pocketbase.es-B_4DUNUU.js">
|
||||||
<link rel="stylesheet" crossorigin href="./assets/index-DR1PnFnr.css">
|
<link rel="stylesheet" crossorigin href="./assets/index-DR1PnFnr.css">
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -47,9 +47,14 @@ export function pageApplicationSettings() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function saveWithConfirm() {
|
async function saveWithConfirm() {
|
||||||
|
const oldSuperuserIPs = app.utils.toArray(data.originalFormSettings?.superuserIPs);
|
||||||
const superuserIPs = app.utils.toArray(data.formSettings?.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();
|
return save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user