mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-02-10 04:33:47 +02:00
fixed isNew checks
This commit is contained in:
parent
ed4f7c7358
commit
9c0d952543
@ -24,7 +24,7 @@
|
||||
let passwordConfirm = "";
|
||||
let changePasswordToggle = false;
|
||||
|
||||
$: isNew = !!admin?.id;
|
||||
$: isNew = !admin?.id;
|
||||
|
||||
$: hasChanges =
|
||||
(isNew && email != "") || changePasswordToggle || email !== admin.email || avatar !== admin.avatar;
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
export let record;
|
||||
export let collection;
|
||||
export let isNew = !!record.id;
|
||||
export let isNew = !record.id;
|
||||
|
||||
let originalUsername = record.username || null;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user