mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-26 07:00:38 +08:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user