diff --git a/src/components/modals/main/settings/Radio.jsx b/src/components/modals/main/settings/Radio.jsx index 01c793c0..d4b1fdd9 100644 --- a/src/components/modals/main/settings/Radio.jsx +++ b/src/components/modals/main/settings/Radio.jsx @@ -18,6 +18,10 @@ export default class Radio extends PureComponent { return; } + if (this.props.name === 'language') { + localStorage.setItem('tabName', require(`../../../../translations/${value.replace('-', '_')}.json`).tabname); + } + localStorage.setItem(this.props.name, value); this.setState({ diff --git a/src/components/modals/main/settings/sections/Order.jsx b/src/components/modals/main/settings/sections/Order.jsx index 23013074..bc780b9c 100644 --- a/src/components/modals/main/settings/sections/Order.jsx +++ b/src/components/modals/main/settings/sections/Order.jsx @@ -5,15 +5,6 @@ import { toast } from 'react-toastify'; import EventBus from '../../../../../modules/helpers/eventbus'; -const enabled = (setting) => { - switch (setting) { - case 'quicklinks': - return (localStorage.getItem('quicklinksenabled') === 'true'); - default: - return (localStorage.getItem(setting) === 'true'); - } -}; - const settings = window.language.modals.main.settings.sections; const widget_name = { greeting: settings.greeting.title, @@ -24,7 +15,7 @@ const widget_name = { }; const SortableItem = sortableElement(({ value }) => ( -