refactor: update create/update issue modal to use currently active store's create/update method. (#3395)
* refactor: update `create/update issue` modal to use currently active store's create/update method. * chore: add condition to avoid multiple API calls if the current store is MODULE or CYCLE. * remove: console log * chore: update `currentStore` to `storeType`.
This commit is contained in:
parent
3f07c48b35
commit
f347c1cd69
29 changed files with 251 additions and 102 deletions
|
|
@ -11,6 +11,8 @@ import { copyUrlToClipboard } from "helpers/string.helper";
|
|||
// types
|
||||
import { TIssue } from "@plane/types";
|
||||
import { IQuickActionProps } from "../list/list-view-types";
|
||||
// constants
|
||||
import { EIssuesStoreType } from "constants/issue";
|
||||
|
||||
export const AllIssueQuickActions: React.FC<IQuickActionProps> = (props) => {
|
||||
const { issue, handleDelete, handleUpdate, customActionButton, portalElement } = props;
|
||||
|
|
@ -58,6 +60,7 @@ export const AllIssueQuickActions: React.FC<IQuickActionProps> = (props) => {
|
|||
onSubmit={async (data) => {
|
||||
if (issueToEdit && handleUpdate) await handleUpdate({ ...issueToEdit, ...data });
|
||||
}}
|
||||
storeType={EIssuesStoreType.PROJECT}
|
||||
/>
|
||||
<CustomMenu
|
||||
placement="bottom-start"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue