Skip to content

Commit

Permalink
Disable "New" issue button on issue creation view
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rudolfs committed Dec 6, 2024
1 parent 96b422b commit 15e2935
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/IssueSecondColumn.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import Icon from "./Icon.svelte";
import OutlineButton from "./OutlineButton.svelte";
const activeRouteStore = router.activeRouteStore;
interface Props {
repo: RepoInfo;
selectedIssueId?: string;
Expand Down Expand Up @@ -36,6 +38,7 @@

<OutlineButton
variant="ghost"
disabled={$activeRouteStore.resource === "repo.createIssue"}
onclick={() => {
void router.push({
resource: "repo.createIssue",
Expand Down

0 comments on commit 15e2935

Please sign in to comment.