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.
This commit is contained in:
Rūdolfs Ošiņš
2024-12-06 11:48:18 +01:00
parent 96b422bdac
commit 15e2935cee
+3
View File
@@ -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 @@
<OutlineButton
variant="ghost"
disabled={$activeRouteStore.resource === "repo.createIssue"}
onclick={() => {
void router.push({
resource: "repo.createIssue",