{ if (hasChanges && confirmHide) { confirm("You have unsaved changes. Do you really want to close the panel?", () => { forceHide(); }); return false; } setErrors({}); deleteDraft(); return true; }} on:hide on:show > {#if isLoading}

Loading...

{:else}

{isNew ? "New" : "Edit"} {collection?.name} record

{#if !isNew}