feat(activities): editable stages with tab and kanban views
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -46,6 +46,7 @@ const props = withDefaults(
|
||||
initialPersonId?: string;
|
||||
initialType?: ActivityType;
|
||||
initialTitle?: string;
|
||||
initialStageId?: string;
|
||||
}>(),
|
||||
{ embedded: false },
|
||||
);
|
||||
@@ -438,7 +439,10 @@ async function submit(next: 'detail' | 'new' = 'detail') {
|
||||
try {
|
||||
let savedId = id.value;
|
||||
if (isNew.value) {
|
||||
const { data } = await api.post<ActivityDto>('/activities', payload());
|
||||
const { data } = await api.post<ActivityDto>('/activities', {
|
||||
...payload(),
|
||||
...(props.initialStageId ? { stageId: props.initialStageId } : {}),
|
||||
});
|
||||
savedId = data.id;
|
||||
if (isDone.value) {
|
||||
await api.patch(`/activities/${savedId}/complete`);
|
||||
|
||||
Reference in New Issue
Block a user