[bugfix/Update] Config Page: Device Tab. Mic/Speaker auto select section. Fetch initial data.
This commit is contained in:
@@ -20,6 +20,8 @@ export const App = () => {
|
||||
|
||||
|
||||
import { useSoftwareVersion } from "@logics_configs/useSoftwareVersion";
|
||||
import { useEnableAutoMicSelect } from "@logics_configs/useEnableAutoMicSelect";
|
||||
import { useEnableAutoSpeakerSelect } from "@logics_configs/useEnableAutoSpeakerSelect";
|
||||
import { useSelectedMicHost } from "@logics_configs/useSelectedMicHost";
|
||||
import { useSelectedMicDevice } from "@logics_configs/useSelectedMicDevice";
|
||||
import { useSelectedSpeakerDevice } from "@logics_configs/useSelectedSpeakerDevice";
|
||||
@@ -37,6 +39,8 @@ const StartPythonFacadeComponent = () => {
|
||||
const main_page = getCurrent();
|
||||
|
||||
const { getSoftwareVersion } = useSoftwareVersion();
|
||||
const { getEnableAutoMicSelect } = useEnableAutoMicSelect();
|
||||
const { getEnableAutoSpeakerSelect } = useEnableAutoSpeakerSelect();
|
||||
const { getSelectedMicHost } = useSelectedMicHost();
|
||||
const { getSelectedMicDevice } = useSelectedMicDevice();
|
||||
const { getSelectedSpeakerDevice } = useSelectedSpeakerDevice();
|
||||
@@ -59,6 +63,8 @@ const StartPythonFacadeComponent = () => {
|
||||
|
||||
getSelectableLanguageList();
|
||||
|
||||
getEnableAutoMicSelect();
|
||||
getEnableAutoSpeakerSelect();
|
||||
getSelectedMicHost();
|
||||
getSelectedMicDevice();
|
||||
getSelectedSpeakerDevice();
|
||||
|
||||
@@ -76,8 +76,10 @@ export const useReceiveRoutes = () => {
|
||||
|
||||
"/config/version": updateSoftwareVersion,
|
||||
|
||||
"/config/enable_mic_automatic_selection": updateEnableAutoMicSelect,
|
||||
"/controller/callback_enable_mic_automatic_selection": updateEnableAutoMicSelect,
|
||||
"/controller/callback_disable_mic_automatic_selection": updateEnableAutoMicSelect,
|
||||
"/config/enable_speaker_automatic_selection": updateEnableAutoSpeakerSelect,
|
||||
"/controller/callback_enable_speaker_automatic_selection": updateEnableAutoSpeakerSelect,
|
||||
"/controller/callback_disable_speaker_automatic_selection": updateEnableAutoSpeakerSelect,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user