{ unsavedModalOpen = false }} on:confirmed={() => { unsavedModalOpen = false closeAnyway = true scriptEditorDrawer.closeDrawer() }} >
Are you sure you want to discard the changes you have made?
{ scriptEditorDrawer.openDrawer() checkForUnsavedChanges() }} > { scriptEditorDrawer.closeDrawer() }} > {#if script} {#key script.hash} {/key} {:else}
Loading
{/if}
{ if (!closeAnyway) { scriptEditorDrawer.openDrawer() } else { closeAnyway = false } }} />