mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-24 06:50:25 +02:00
silenced the superuser ips confirmation if there is no change
This commit is contained in:
1 parent
d438c6a96a
commit
1b5ea9a1fa
4 files changed
+13
-3
No files matched your search
@@ -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