mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-05-19 06:11:43 -04:00
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
|
||||
|
||||
- Fixed UI logs pagination when no custom range is specified.
|
||||
|
||||
File diff suppressed because one or more lines are too long
2
ui/dist/index.html
vendored
2
ui/dist/index.html
vendored
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user