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" },
|
payload: { ...response, state: "SUCCESS", element: "Inbox" },
|
||||||
updates: {
|
updates: {
|
||||||
changed_property: Object.keys(data).join(","),
|
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,
|
path: router.asPath,
|
||||||
});
|
});
|
||||||
@ -82,7 +82,7 @@ export const InboxIssueDetailRoot: FC<TInboxIssueDetailRoot> = (props) => {
|
|||||||
payload: { state: "SUCCESS", element: "Inbox" },
|
payload: { state: "SUCCESS", element: "Inbox" },
|
||||||
updates: {
|
updates: {
|
||||||
changed_property: Object.keys(data).join(","),
|
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,
|
path: router.asPath,
|
||||||
});
|
});
|
||||||
|
@ -109,7 +109,7 @@ export const IssueDetailRoot: FC<TIssueDetailRoot> = observer((props) => {
|
|||||||
payload: { ...response, state: "SUCCESS", element: "Issue detail page" },
|
payload: { ...response, state: "SUCCESS", element: "Issue detail page" },
|
||||||
updates: {
|
updates: {
|
||||||
changed_property: Object.keys(data).join(","),
|
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,
|
path: router.asPath,
|
||||||
});
|
});
|
||||||
@ -119,7 +119,7 @@ export const IssueDetailRoot: FC<TIssueDetailRoot> = observer((props) => {
|
|||||||
payload: { state: "FAILED", element: "Issue detail page" },
|
payload: { state: "FAILED", element: "Issue detail page" },
|
||||||
updates: {
|
updates: {
|
||||||
changed_property: Object.keys(data).join(","),
|
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,
|
path: router.asPath,
|
||||||
});
|
});
|
||||||
|
@ -99,7 +99,7 @@ export const IssuePeekOverview: FC<IIssuePeekOverview> = observer((props) => {
|
|||||||
payload: { ...response, state: "SUCCESS", element: "Issue peek-overview" },
|
payload: { ...response, state: "SUCCESS", element: "Issue peek-overview" },
|
||||||
updates: {
|
updates: {
|
||||||
changed_property: Object.keys(data).join(","),
|
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,
|
path: router.asPath,
|
||||||
});
|
});
|
||||||
|
@ -160,7 +160,8 @@ export const SubIssuesRoot: FC<ISubIssuesRoot> = observer((props) => {
|
|||||||
payload: { ...oldIssue, ...issueData, state: "SUCCESS", element: "Issue detail page" },
|
payload: { ...oldIssue, ...issueData, state: "SUCCESS", element: "Issue detail page" },
|
||||||
updates: {
|
updates: {
|
||||||
changed_property: Object.keys(issueData).join(","),
|
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,
|
path: router.asPath,
|
||||||
});
|
});
|
||||||
@ -176,7 +177,8 @@ export const SubIssuesRoot: FC<ISubIssuesRoot> = observer((props) => {
|
|||||||
payload: { ...oldIssue, ...issueData, state: "FAILED", element: "Issue detail page" },
|
payload: { ...oldIssue, ...issueData, state: "FAILED", element: "Issue detail page" },
|
||||||
updates: {
|
updates: {
|
||||||
changed_property: Object.keys(issueData).join(","),
|
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,
|
path: router.asPath,
|
||||||
});
|
});
|
||||||
|
@ -35,9 +35,9 @@ export const AppProvider: FC<IAppProvider> = observer((props) => {
|
|||||||
// store hooks
|
// store hooks
|
||||||
const {
|
const {
|
||||||
currentUser,
|
currentUser,
|
||||||
membership: { currentProjectRole, currentWorkspaceRole },
|
membership: { currentWorkspaceRole },
|
||||||
} = useUser();
|
} = useUser();
|
||||||
const { currentWorkspace } = useWorkspace();
|
const { currentWorkspace, workspaces } = useWorkspace();
|
||||||
const {
|
const {
|
||||||
config: { envConfig },
|
config: { envConfig },
|
||||||
} = useApplication();
|
} = useApplication();
|
||||||
@ -52,7 +52,7 @@ export const AppProvider: FC<IAppProvider> = observer((props) => {
|
|||||||
user={currentUser}
|
user={currentUser}
|
||||||
currentWorkspaceId= {currentWorkspace?.id}
|
currentWorkspaceId= {currentWorkspace?.id}
|
||||||
workspaceRole={currentWorkspaceRole}
|
workspaceRole={currentWorkspaceRole}
|
||||||
projectRole={currentProjectRole}
|
workspaces={workspaces}
|
||||||
posthogAPIKey={envConfig?.posthog_api_key || null}
|
posthogAPIKey={envConfig?.posthog_api_key || null}
|
||||||
posthogHost={envConfig?.posthog_host || null}
|
posthogHost={envConfig?.posthog_host || null}
|
||||||
>
|
>
|
||||||
|
@ -2,6 +2,9 @@ import { action, computed, makeObservable, observable } from "mobx";
|
|||||||
import posthog from "posthog-js";
|
import posthog from "posthog-js";
|
||||||
// stores
|
// stores
|
||||||
import { RootStore } from "./root.store";
|
import { RootStore } from "./root.store";
|
||||||
|
// helpers
|
||||||
|
import { getUserRole } from "helpers/user.helper";
|
||||||
|
// constants
|
||||||
import {
|
import {
|
||||||
GROUP_WORKSPACE,
|
GROUP_WORKSPACE,
|
||||||
WORKSPACE_CREATED,
|
WORKSPACE_CREATED,
|
||||||
@ -64,6 +67,7 @@ export class EventTrackerStore implements IEventTrackerStore {
|
|||||||
return {
|
return {
|
||||||
workspace_id: currentWorkspaceDetails?.id,
|
workspace_id: currentWorkspaceDetails?.id,
|
||||||
project_id: currentProjectDetails?.id,
|
project_id: currentProjectDetails?.id,
|
||||||
|
user_project_role: getUserRole(currentProjectDetails?.member_role as number),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user