diff --git a/src-ui/app/config_page/setting_section/setting_box/_components/radio_button/RadioButton.jsx b/src-ui/app/config_page/setting_section/setting_box/_components/radio_button/RadioButton.jsx index f3efdae4..c0278a07 100644 --- a/src-ui/app/config_page/setting_section/setting_box/_components/radio_button/RadioButton.jsx +++ b/src-ui/app/config_page/setting_section/setting_box/_components/radio_button/RadioButton.jsx @@ -16,7 +16,7 @@ export const RadioButton = (props) => { const labelClass = clsx(styles.radio_button_wrapper, { [styles.is_selected]: props.checked_variable.data === option.id, - [styles.disabled]: option.disabled === true, + [styles.disabled]: option.disabled === true || props.checked_variable.state === "pending", }); return ( @@ -29,7 +29,7 @@ export const RadioButton = (props) => { value={option.id} onChange={() => props.selectFunction(option.id)} checked={props.checked_variable.data === option.id} - disabled={option.disabled === true} + disabled={option.disabled === true || props.checked_variable.state === "pending"} />
{option.label}
diff --git a/src-ui/app/main_page/sidebar_section/language_settings/translator_selector_open_button/TranslatorSelectorOpenButton.jsx b/src-ui/app/main_page/sidebar_section/language_settings/translator_selector_open_button/TranslatorSelectorOpenButton.jsx index 13708b1c..3c830f13 100644 --- a/src-ui/app/main_page/sidebar_section/language_settings/translator_selector_open_button/TranslatorSelectorOpenButton.jsx +++ b/src-ui/app/main_page/sidebar_section/language_settings/translator_selector_open_button/TranslatorSelectorOpenButton.jsx @@ -19,8 +19,10 @@ export const TranslatorSelectorOpenButton = () => { const translation_engines = updateLabelsById(currentTranslationEngines.data, new_labels); + const selected_engine_id = currentSelectedTranslationEngines.data[currentSelectedPresetTabNumber.data]; + const getSelectedLabel = () => { - const selected_engine_id = currentSelectedTranslationEngines.data[currentSelectedPresetTabNumber.data]; + const selected_engine = translation_engines.find( d => d.id === selected_engine_id ); @@ -45,7 +47,7 @@ export const TranslatorSelectorOpenButton = () => { {currentIsOpenedTranslatorSelector.data &&