mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: title, description removed from change_details
This commit is contained in:
parent
07a4cb1f7d
commit
ef05746f7e
@ -67,7 +67,7 @@ export const InboxIssueDetailRoot: FC<TInboxIssueDetailRoot> = (props) => {
|
||||
payload: { ...response, state: "SUCCESS", element: "Inbox" },
|
||||
updates: {
|
||||
changed_property: Object.keys(data).join(","),
|
||||
change_details: Object.values(data).join(","),
|
||||
change_details: !data.name && !data.description_html ? Object.values(data).join(",") : undefined,
|
||||
},
|
||||
path: router.asPath,
|
||||
});
|
||||
@ -82,7 +82,7 @@ export const InboxIssueDetailRoot: FC<TInboxIssueDetailRoot> = (props) => {
|
||||
payload: { state: "SUCCESS", element: "Inbox" },
|
||||
updates: {
|
||||
changed_property: Object.keys(data).join(","),
|
||||
change_details: Object.values(data).join(","),
|
||||
change_details: !data.name && !data.description_html ? Object.values(data).join(",") : undefined,
|
||||
},
|
||||
path: router.asPath,
|
||||
});
|
||||
|
@ -109,7 +109,7 @@ export const IssueDetailRoot: FC<TIssueDetailRoot> = observer((props) => {
|
||||
payload: { ...response, state: "SUCCESS", element: "Issue detail page" },
|
||||
updates: {
|
||||
changed_property: Object.keys(data).join(","),
|
||||
change_details: Object.values(data).join(","),
|
||||
change_details: !data.name && !data.description_html ? Object.values(data).join(",") : undefined,
|
||||
},
|
||||
path: router.asPath,
|
||||
});
|
||||
@ -119,7 +119,7 @@ export const IssueDetailRoot: FC<TIssueDetailRoot> = observer((props) => {
|
||||
payload: { state: "FAILED", element: "Issue detail page" },
|
||||
updates: {
|
||||
changed_property: Object.keys(data).join(","),
|
||||
change_details: Object.values(data).join(","),
|
||||
change_details: !data.name && !data.description_html ? Object.values(data).join(",") : undefined,
|
||||
},
|
||||
path: router.asPath,
|
||||
});
|
||||
|
@ -99,7 +99,7 @@ export const IssuePeekOverview: FC<IIssuePeekOverview> = observer((props) => {
|
||||
payload: { ...response, state: "SUCCESS", element: "Issue peek-overview" },
|
||||
updates: {
|
||||
changed_property: Object.keys(data).join(","),
|
||||
change_details: Object.values(data).join(","),
|
||||
change_details: !data.name && !data.description_html ? Object.values(data).join(",") : undefined,
|
||||
},
|
||||
path: router.asPath,
|
||||
});
|
||||
|
@ -160,7 +160,8 @@ export const SubIssuesRoot: FC<ISubIssuesRoot> = observer((props) => {
|
||||
payload: { ...oldIssue, ...issueData, state: "SUCCESS", element: "Issue detail page" },
|
||||
updates: {
|
||||
changed_property: Object.keys(issueData).join(","),
|
||||
change_details: Object.values(issueData).join(","),
|
||||
change_details:
|
||||
!issueData.name && !issueData.description_html ? Object.values(issueData).join(",") : undefined,
|
||||
},
|
||||
path: router.asPath,
|
||||
});
|
||||
@ -176,7 +177,8 @@ export const SubIssuesRoot: FC<ISubIssuesRoot> = observer((props) => {
|
||||
payload: { ...oldIssue, ...issueData, state: "FAILED", element: "Issue detail page" },
|
||||
updates: {
|
||||
changed_property: Object.keys(issueData).join(","),
|
||||
change_details: Object.values(issueData).join(","),
|
||||
change_details:
|
||||
!issueData.name && !issueData.description_html ? Object.values(issueData).join(",") : undefined,
|
||||
},
|
||||
path: router.asPath,
|
||||
});
|
||||
|
@ -35,9 +35,9 @@ export const AppProvider: FC<IAppProvider> = observer((props) => {
|
||||
// store hooks
|
||||
const {
|
||||
currentUser,
|
||||
membership: { currentProjectRole, currentWorkspaceRole },
|
||||
membership: { currentWorkspaceRole },
|
||||
} = useUser();
|
||||
const { currentWorkspace } = useWorkspace();
|
||||
const { currentWorkspace, workspaces } = useWorkspace();
|
||||
const {
|
||||
config: { envConfig },
|
||||
} = useApplication();
|
||||
@ -52,7 +52,7 @@ export const AppProvider: FC<IAppProvider> = observer((props) => {
|
||||
user={currentUser}
|
||||
currentWorkspaceId= {currentWorkspace?.id}
|
||||
workspaceRole={currentWorkspaceRole}
|
||||
projectRole={currentProjectRole}
|
||||
workspaces={workspaces}
|
||||
posthogAPIKey={envConfig?.posthog_api_key || null}
|
||||
posthogHost={envConfig?.posthog_host || null}
|
||||
>
|
||||
|
@ -2,6 +2,9 @@ import { action, computed, makeObservable, observable } from "mobx";
|
||||
import posthog from "posthog-js";
|
||||
// stores
|
||||
import { RootStore } from "./root.store";
|
||||
// helpers
|
||||
import { getUserRole } from "helpers/user.helper";
|
||||
// constants
|
||||
import {
|
||||
GROUP_WORKSPACE,
|
||||
WORKSPACE_CREATED,
|
||||
@ -64,6 +67,7 @@ export class EventTrackerStore implements IEventTrackerStore {
|
||||
return {
|
||||
workspace_id: currentWorkspaceDetails?.id,
|
||||
project_id: currentProjectDetails?.id,
|
||||
user_project_role: getUserRole(currentProjectDetails?.member_role as number),
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user