Skip to content

Commit

Permalink
Fix event handler naming for confirmation dialog in application resta…
Browse files Browse the repository at this point in the history
…rt and add close function for job validation
  • Loading branch information
rbjornstad committed Dec 12, 2024
1 parent 7d343c3 commit 9c6968c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/team/[team]/[env]/app/[app]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
</Card>
{/if}
</div>
<Confirm bind:open={restart} on:confirm={submit}>
<Confirm bind:open={restart} onconfirm={submit}>
{#snippet header()}
<h3>Restart {application}</h3>
{/snippet}
Expand Down
4 changes: 4 additions & 0 deletions src/routes/team/[team]/[env]/job/[job]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@
errors: string[];
};
function close() {
open = false;
}
function validateJobName(input: string): ValidationResult {
const errors: string[] = [];
Expand Down

0 comments on commit 9c6968c

Please sign in to comment.