Skip to content

Commit 15e2935

Browse files
committed
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.
1 parent 96b422b commit 15e2935

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/IssueSecondColumn.svelte

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
import Icon from "./Icon.svelte";
99
import OutlineButton from "./OutlineButton.svelte";
1010
11+
const activeRouteStore = router.activeRouteStore;
12+
1113
interface Props {
1214
repo: RepoInfo;
1315
selectedIssueId?: string;
@@ -36,6 +38,7 @@
3638

3739
<OutlineButton
3840
variant="ghost"
41+
disabled={$activeRouteStore.resource === "repo.createIssue"}
3942
onclick={() => {
4043
void router.push({
4144
resource: "repo.createIssue",

0 commit comments

Comments
 (0)