File tree Expand file tree Collapse file tree 10 files changed +444
-0
lines changed
components/Modules/NethVoice/BaseModule
ProfileDialog/SettingsSettings Expand file tree Collapse file tree 10 files changed +444
-0
lines changed Original file line number Diff line number Diff line change 331331 "Wrong file type" : " Wrong file type" ,
332332 "Delete profile picture" : " Delete profile picture" ,
333333 "Devices" : " Audio and Video" ,
334+ "IncomingCalls" : " Incoming Calls" ,
335+ "Ringtone" : " Ringtone" ,
334336 "Time preferences" : " Time preferences" ,
335337 "Login/logout preferences" : " Login/logout preferences" ,
336338 "Logout from queue automatically" : " Logout from queue automatically" ,
Original file line number Diff line number Diff line change 331331 "Wrong file type" : " Formato file errato" ,
332332 "Delete profile picture" : " Elimina immagine profilo" ,
333333 "Devices" : " Audio e Video" ,
334+ "IncomingCalls" : " Chiamate in Arrivo" ,
335+ "Ringtone" : " Suoneria" ,
334336 "Time preferences" : " Preferenze di tempo" ,
335337 "Login/logout preferences" : " Preferenze di entrata/uscita" ,
336338 "Logout from queue automatically" : " Esci dalla coda automaticamente" ,
Original file line number Diff line number Diff line change 331331 "Wrong file type" : " Wrong file type" ,
332332 "Delete profile picture" : " Delete profile picture" ,
333333 "Devices" : " Audio and Video" ,
334+ "IncomingCalls" : " Incoming Calls" ,
335+ "Ringtone" : " Ringtone" ,
334336 "Time preferences" : " Time preferences" ,
335337 "Login/logout preferences" : " Login/logout preferences" ,
336338 "Logout from queue automatically" : " Logout from queue automatically" ,
Original file line number Diff line number Diff line change 331331 "Wrong file type" : " Formato file errato" ,
332332 "Delete profile picture" : " Elimina immagine profilo" ,
333333 "Devices" : " Audio e Video" ,
334+ "IncomingCalls" : " Chiamate in Arrivo" ,
335+ "Ringtone" : " Suoneria" ,
334336 "Time preferences" : " Preferenze di tempo" ,
335337 "Login/logout preferences" : " Preferenze di entrata/uscita" ,
336338 "Logout from queue automatically" : " Esci dalla coda automaticamente" ,
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { ProfileDialog } from './ProfileDialog'
1111import { PresenceForwardDialog } from './ProfileDialog/PresenceSettings/PresenceForwardDialog'
1212import { SettingsShortcutDialog } from './ProfileDialog/SettingsSettings/SettingsShortcutDialog'
1313import { SettingsDeviceDialog } from './ProfileDialog/SettingsSettings/SettingsDevicesDialog'
14+ import { SettingsIncomingCallsDialog } from './ProfileDialog/SettingsSettings/SettingsIncomingCallsDialog'
1415
1516export interface NavbarProps {
1617 onClickAccount : ( ) => void
@@ -23,6 +24,7 @@ export function Navbar({ onClickAccount }: NavbarProps): JSX.Element {
2324 const [ isForwardDialogOpen ] = useNethlinkData ( 'isForwardDialogOpen' )
2425 const [ isShortcutDialogOpen ] = useNethlinkData ( 'isShortcutDialogOpen' )
2526 const [ isDeviceDialogOpen ] = useNethlinkData ( 'isDeviceDialogOpen' )
27+ const [ isIncomingCallsDialogOpen ] = useNethlinkData ( 'isIncomingCallsDialogOpen' )
2628
2729 const [ isProfileDialogOpen , setIsProfileDialogOpen ] = useState ( false )
2830
@@ -56,6 +58,7 @@ export function Navbar({ onClickAccount }: NavbarProps): JSX.Element {
5658 { isForwardDialogOpen && < PresenceForwardDialog /> }
5759 { isShortcutDialogOpen && < SettingsShortcutDialog /> }
5860 { isDeviceDialogOpen && < SettingsDeviceDialog /> }
61+ { isIncomingCallsDialogOpen && < SettingsIncomingCallsDialog /> }
5962 < ProfileDialog
6063 isOpen = { isProfileDialogOpen }
6164 onClose = { ( ) => setIsProfileDialogOpen ( false ) }
Original file line number Diff line number Diff line change @@ -2,13 +2,15 @@ import { t } from 'i18next'
22import {
33 faKeyboard as KeyboardIcon ,
44 faHeadphones as DevicesIcon ,
5+ faPhoneVolume as IncomingCallsIcon ,
56} from '@fortawesome/free-solid-svg-icons'
67import { useNethlinkData } from '@renderer/store'
78import { OptionElement } from '../OptionElement'
89
910export function SettingsBox ( { onClose } : { onClose ?: ( ) => void } ) {
1011 const [ , setIsShortcutDialogOpen ] = useNethlinkData ( 'isShortcutDialogOpen' )
1112 const [ , setIsDeviceDialogOpen ] = useNethlinkData ( 'isDeviceDialogOpen' )
13+ const [ , setIsIncomingCallsDialogOpen ] = useNethlinkData ( 'isIncomingCallsDialogOpen' )
1214
1315 return (
1416 < div className = "py-2" >
@@ -30,6 +32,15 @@ export function SettingsBox({ onClose }: { onClose?: () => void }) {
3032 if ( onClose ) onClose ( )
3133 } }
3234 />
35+ < OptionElement
36+ isSelected = { false }
37+ icon = { IncomingCallsIcon }
38+ label = { t ( 'Settings.IncomingCalls' ) }
39+ onClick = { ( ) => {
40+ setIsIncomingCallsDialogOpen ( true )
41+ if ( onClose ) onClose ( )
42+ } }
43+ />
3344 </ div >
3445 )
3546}
You can’t perform that action at this time.
0 commit comments