Public Access
fix: wire up 'Send Vote Email' button to POST /admin/orchestrate/email
- Add triggerOrchestrate() to API client calling POST /admin/orchestrate/{step}
- Replace dead <button> in Dashboard with VoteEmailButton component:
onClick calls triggerOrchestrate('email'), shows toast spinner + success/error
This commit is contained in:
@@ -64,6 +64,7 @@ export const mealPlannerApi = {
|
||||
getMealPlans: (params?: any) => api.get('/admin/meal-plans', { params }),
|
||||
getStats: () => api.get('/admin/stats'),
|
||||
testEmail: (email: string) => api.post('/admin/test-email', null, { params: { email } }),
|
||||
triggerOrchestrate: (step: string, weekStart?: string) => api.post(`/admin/orchestrate/${step}`, null, { params: { week_start: weekStart } }),
|
||||
},
|
||||
|
||||
feedback: {
|
||||
|
||||
Reference in New Issue
Block a user