mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 18:33:01 +00:00
functional issue creation
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import type { IssueResponse, OrganisationResponse, ProjectResponse, UserRecord } from "@issue/shared";
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { CreateIssue } from "@/components/create-issue";
|
||||
import { CreateOrganisation } from "@/components/create-organisation";
|
||||
import { CreateProject } from "@/components/create-project";
|
||||
import { IssueDetailPane } from "@/components/issue-detail-pane";
|
||||
@@ -273,6 +274,15 @@ function Index() {
|
||||
</SelectContent>
|
||||
</Select>
|
||||
)}
|
||||
{selectedOrganisation && selectedProject && (
|
||||
<CreateIssue
|
||||
projectId={selectedProject?.Project.id}
|
||||
completeAction={async () => {
|
||||
if (!selectedProject) return;
|
||||
await refetchIssues(selectedProject.Project.key);
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="flex gap-1 items-center">
|
||||
|
||||
Reference in New Issue
Block a user