{ 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} { saveScript() }} noSyncFromGithub lang={script.language} path={script.path} tag={script.tag} fixedOverflowWidgets={false} bind:code={script.content} bind:schema={script.schema} >
{/key} {:else}
Loading
{/if}
{ if (!closeAnyway) { scriptEditorDrawer.openDrawer() } else { closeAnyway = false } }} />