fix: 4.0 to 5.0 should now work

This commit is contained in:
David Ralph
2021-04-17 21:38:16 +01:00
parent b429ae2158
commit 44125d7471
3 changed files with 27 additions and 24 deletions

View File

@@ -5,13 +5,18 @@ import SettingsFunctions from '../../../../modules/helpers/settings';
export default function ResetModal(props) {
const language = window.language.modals.main.settings.sections.advanced.reset_modal;
const reset = () => {
SettingsFunctions.setDefaultSettings('reset');
window.location.reload();
}
return (
<>
<h3 style={{'textAlign': 'center'}}>{language.title}</h3>
<h4>{language.question}</h4>
<p>{language.information}</p>
<div className='resetfooter'>
<button className='reset' style={{ 'marginLeft': '0' }} onClick={() => SettingsFunctions.setDefaultSettings('reset')}>{window.language.modals.main.settings.buttons.reset}</button>
<button className='reset' style={{ 'marginLeft': '0' }} onClick={() => reset()}>{window.language.modals.main.settings.buttons.reset}</button>
<button className='import' style={{ 'marginLeft': '5px' }} onClick={props.modalClose}>{language.cancel}</button>
</div>
</>