mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
Add cancel and save buttons to form
This commit is contained in:
@@ -28,6 +28,8 @@
|
||||
return registration;
|
||||
});
|
||||
|
||||
const save = () => {};
|
||||
|
||||
$: isOwner = (registration: Registration): boolean => {
|
||||
return registration.owner === ($session && $session.address);
|
||||
};
|
||||
@@ -61,7 +63,7 @@
|
||||
Transfer
|
||||
</button>
|
||||
</header>
|
||||
<Form {editable} {fields} />
|
||||
<Form {editable} {fields} on:save={save} on:cancel={() => editable = false} />
|
||||
</main>
|
||||
{:else}
|
||||
<Modal subtle>
|
||||
|
||||
Reference in New Issue
Block a user