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

{!collection.id ? "New collection" : "Edit collection"}

{#if !!collection.id && !collection.system}