mirror of
https://github.com/jambonz/chrome-extension-dialer.git
synced 2025-12-19 04:47:45 +00:00
wip
This commit is contained in:
@@ -20,7 +20,7 @@ const initiateNewPhonePopup = () => {
|
|||||||
{
|
{
|
||||||
url: chrome.runtime.getURL("window/index.html"),
|
url: chrome.runtime.getURL("window/index.html"),
|
||||||
width: 440,
|
width: 440,
|
||||||
height: 720,
|
height: 750,
|
||||||
focused: true,
|
focused: true,
|
||||||
type: "panel",
|
type: "panel",
|
||||||
state: "normal",
|
state: "normal",
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ export const JoinConference = ({
|
|||||||
const [speakOnlyTo, setSpeakOnlyTo] = useState("");
|
const [speakOnlyTo, setSpeakOnlyTo] = useState("");
|
||||||
const [tags, setTags] = useState("");
|
const [tags, setTags] = useState("");
|
||||||
const [mode, setMode] = useState<ConferenceModes>("full_participant");
|
const [mode, setMode] = useState<ConferenceModes>("full_participant");
|
||||||
|
const [participantState, setParticipantState] = useState("Join as");
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
switch (callStatus) {
|
switch (callStatus) {
|
||||||
@@ -52,6 +53,7 @@ export const JoinConference = ({
|
|||||||
setAppTitle("Conference");
|
setAppTitle("Conference");
|
||||||
setSubmitTitle("Update");
|
setSubmitTitle("Update");
|
||||||
setCancelTitle("Hangup");
|
setCancelTitle("Hangup");
|
||||||
|
setParticipantState("Participant state");
|
||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
configureConferenceSession();
|
configureConferenceSession();
|
||||||
break;
|
break;
|
||||||
@@ -107,7 +109,9 @@ export const JoinConference = ({
|
|||||||
return (
|
return (
|
||||||
<Box as="form" onSubmit={handleSubmit} w="full">
|
<Box as="form" onSubmit={handleSubmit} w="full">
|
||||||
<VStack spacing={4} mt="20px" w="full">
|
<VStack spacing={4} mt="20px" w="full">
|
||||||
<Text fontWeight="bold">{appTitle}</Text>
|
<Text fontWeight="bold" fontSize="lg">
|
||||||
|
{appTitle}
|
||||||
|
</Text>
|
||||||
{callDuration > 0 && (
|
{callDuration > 0 && (
|
||||||
<Text fontSize="15px">
|
<Text fontSize="15px">
|
||||||
{new Date(callDuration * 1000).toISOString().substr(11, 8)}
|
{new Date(callDuration * 1000).toISOString().substr(11, 8)}
|
||||||
@@ -125,7 +129,7 @@ export const JoinConference = ({
|
|||||||
/>
|
/>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
|
||||||
<OutlineBox title="Join as">
|
<OutlineBox title={participantState}>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
onChange={(e) => setMode(e as ConferenceModes)}
|
onChange={(e) => setMode(e as ConferenceModes)}
|
||||||
value={mode}
|
value={mode}
|
||||||
|
|||||||
@@ -807,8 +807,10 @@ export const Phone = ({
|
|||||||
setPageView(PAGE_VIEW.DIAL_PAD);
|
setPageView(PAGE_VIEW.DIAL_PAD);
|
||||||
}}
|
}}
|
||||||
call={(name) => {
|
call={(name) => {
|
||||||
|
const conference = `conference-${name}`;
|
||||||
setSelectedConference(name);
|
setSelectedConference(name);
|
||||||
sipUA.current?.call(`conference-${name}`);
|
setInputNumber(conference);
|
||||||
|
makeOutboundCall(conference, `Conference ${name}`);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user