From 4333d2cd11442f99a83d2b41f9289fd620c3b723 Mon Sep 17 00:00:00 2001 From: rocord01 Date: Sat, 26 Jul 2025 22:38:32 -0400 Subject: [PATCH] auto answer --- src/components/dashboard/QuickActionsCard.jsx | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/components/dashboard/QuickActionsCard.jsx b/src/components/dashboard/QuickActionsCard.jsx index a883047..e3cdca6 100644 --- a/src/components/dashboard/QuickActionsCard.jsx +++ b/src/components/dashboard/QuickActionsCard.jsx @@ -17,6 +17,7 @@ export function QuickActionsCard({ details, loading }) { const [isCalling, setIsCalling] = useState(false); const [callMode, setCallMode] = useState('hold'); const [callerId, setCallerId] = useState(''); + const [autoAnswerMode, setAutoAnswerMode] = useState('none'); const [isCallMeDialogOpen, setIsCallMeDialogOpen] = useState(false); const handleCallMe = async () => { @@ -27,6 +28,9 @@ export function QuickActionsCard({ details, loading }) { if (callerId) { url += `&callerId=${encodeURIComponent(callerId)}`; } + if (autoAnswerMode !== 'none') { + url += `&autoAnswerMode=${autoAnswerMode}`; + } await fetch(url, { method: 'POST', headers: { 'Authorization': `Bearer ${token}` } @@ -89,6 +93,28 @@ export function QuickActionsCard({ details, loading }) { +
+ + +