diff --git a/alfy-bot-frontend/src/api/goals.ts b/alfy-bot-frontend/src/api/goals.ts index bc283f5..beb347c 100644 --- a/alfy-bot-frontend/src/api/goals.ts +++ b/alfy-bot-frontend/src/api/goals.ts @@ -27,6 +27,7 @@ export interface QuestionWithScheduleItem { export interface UpdateGoalDto { status?: 'active' | 'completed' | 'archived' | 'deleted' + outcome?: 'success' | 'failure' | null goal_name?: string parent_goal_id?: number | null } diff --git a/alfy-bot-frontend/src/components/GoalCard.vue b/alfy-bot-frontend/src/components/GoalCard.vue index 850ddc5..8d260e1 100644 --- a/alfy-bot-frontend/src/components/GoalCard.vue +++ b/alfy-bot-frontend/src/components/GoalCard.vue @@ -50,7 +50,7 @@ function subGoalsLabel(n: number) {
- + -import type { GoalStatus } from '../types' +import type { GoalOutcome, GoalStatus } from '../types' -const props = defineProps<{ status: GoalStatus }>() +const props = defineProps<{ status: GoalStatus, outcome?: GoalOutcome | null }>() const config: Record = { active: { @@ -10,9 +10,9 @@ const config: Record