mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: project state events updated
This commit is contained in:
parent
6108f98adb
commit
c94375e3c7
@ -44,7 +44,7 @@ export const CreateUpdateStateInline: React.FC<Props> = observer((props) => {
|
||||
// form info
|
||||
const {
|
||||
handleSubmit,
|
||||
formState: { errors, isSubmitting },
|
||||
formState: { errors, isSubmitting, dirtyFields},
|
||||
watch,
|
||||
reset,
|
||||
control,
|
||||
@ -131,6 +131,7 @@ export const CreateUpdateStateInline: React.FC<Props> = observer((props) => {
|
||||
eventName: STATE_UPDATED,
|
||||
payload: {
|
||||
...res,
|
||||
change_details: Object.keys(dirtyFields),
|
||||
state: "SUCCESS",
|
||||
element: "Project settings states page",
|
||||
},
|
||||
|
@ -103,7 +103,7 @@ export const StatesListItem: React.FC<Props> = observer((props) => {
|
||||
state.default || groupLength === 1 ? "cursor-not-allowed" : ""
|
||||
} grid place-items-center`}
|
||||
onClick={() => {
|
||||
setTrackElement("PROJECT_SETTINGS_STATE_PAGE");
|
||||
setTrackElement("Project settings states page");
|
||||
handleDeleteState();
|
||||
}}
|
||||
disabled={state.default || groupLength === 1}
|
||||
|
@ -120,6 +120,7 @@ export const getProjectStateEventPayload = (payload: any) => {
|
||||
default: payload.default,
|
||||
state: payload.state,
|
||||
element: payload.element,
|
||||
change_details: payload.change_details,
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user