Small bugifxes

This commit is contained in:
Henry Whitaker
2020-04-10 18:58:14 +01:00
parent 7b43187c8d
commit 876e896243
3 changed files with 26 additions and 15 deletions

View File

@@ -74,13 +74,16 @@ export default class Version extends Component {
toast.info('Applying update');
Axios.get('/api/update/move')
.then((resp) => {
this.setState({
updateProgress: 100,
});
toast.success('Update successful. Refreshing your page...');
setTimeout(function() {
location.reload(true);
}, 5000);
Axios.get('/api/update/move')
.then((resp) => {
this.setState({
updateProgress: 100,
});
toast.success('Update successful. Refreshing your page...');
setTimeout(function() {
location.reload(true);
}, 5000);
})
})
})
})