From 15e2935ceec6600a693fac09ded1f9752ed2c8d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Thu, 5 Dec 2024 11:41:20 +0100 Subject: [PATCH] Disable "New" issue button on issue creation view If the user pressed that button multiple times then the "Dismiss" button would have to be pressed multiple times too because it just pops the history. --- src/components/IssueSecondColumn.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/IssueSecondColumn.svelte b/src/components/IssueSecondColumn.svelte index 8492434..f65d58d 100644 --- a/src/components/IssueSecondColumn.svelte +++ b/src/components/IssueSecondColumn.svelte @@ -8,6 +8,8 @@ import Icon from "./Icon.svelte"; import OutlineButton from "./OutlineButton.svelte"; + const activeRouteStore = router.activeRouteStore; + interface Props { repo: RepoInfo; selectedIssueId?: string; @@ -36,6 +38,7 @@ { void router.push({ resource: "repo.createIssue",