fix: hot reload on background

This commit is contained in:
David Ralph
2021-04-14 12:51:11 +01:00
parent 7fbadad649
commit d596670fdb
6 changed files with 52 additions and 55 deletions

View File

@@ -1,5 +1,7 @@
import React from 'react';
import EventBus from '../../../../../../modules/helpers/eventbus';
import Checkbox from '../../Checkbox';
import Dropdown from '../../Dropdown';
import FileUpload from '../../FileUpload';
@@ -28,6 +30,7 @@ export default class BackgroundSettings extends React.PureComponent {
customBackground: ''
});
toast(this.language.toasts.reset);
EventBus.dispatch('refresh', 'background');
}
customBackground(e, text) {
@@ -42,6 +45,7 @@ export default class BackgroundSettings extends React.PureComponent {
this.setState({
customBackground: result
});
EventBus.dispatch('refresh', 'background');
}
videoCustomSettings = () => {