From 7e6aa3c64782a23cbf54544f3126cdab836868d0 Mon Sep 17 00:00:00 2001 From: Quan HL Date: Mon, 23 Oct 2023 14:51:49 +0700 Subject: [PATCH] wip --- src/window/phone/index.tsx | 36 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/src/window/phone/index.tsx b/src/window/phone/index.tsx index eb0c70a..0f10e95 100644 --- a/src/window/phone/index.tsx +++ b/src/window/phone/index.tsx @@ -409,7 +409,7 @@ export const Phone = ({ mt={5} className={isOnline() ? "" : "blurred"} > - {isAdvanceMode && ( + {isAdvanceMode && isSipClientIdle(callStatus) && ( )} - {isSipClientIdle(callStatus) ? ( - setInputNumber(e.target.value)} - textAlign="center" - /> - ) : ( - - - {formatPhoneNumber(inputNumber)} - - {seconds >= 0 && ( - - {new Date(seconds * 1000).toISOString().substr(11, 8)} - - )} - + setInputNumber(e.target.value)} + textAlign="center" + isReadOnly={!isSipClientIdle(callStatus)} + /> + + {!isSipClientIdle(callStatus) && seconds >= 0 && ( + + {new Date(seconds * 1000).toISOString().substr(11, 8)} + )}