fix events namigs

This commit is contained in:
srgooglo 2022-05-31 02:25:57 +02:00
parent 2b262f3e47
commit 8353de34a2
2 changed files with 6 additions and 6 deletions

View File

@ -298,11 +298,11 @@ class App extends React.Component {
}) })
} }
app.eventBus.emit("app.render_initialization") app.eventBus.emit("app.initialization.start")
await this.initialization() await this.initialization()
app.eventBus.emit("app.render_initialization_done") app.eventBus.emit("app.initialization.finish")
} }
initialization = async () => { initialization = async () => {

View File

@ -32,10 +32,10 @@ export class RouteRender extends EvitePureComponent {
} }
handleBusEvents = { handleBusEvents = {
"app.render_initialization": () => { "app.initialization.start": () => {
this.setState({ renderInitialization: true }) this.setState({ renderInitialization: true })
}, },
"app.render_initialization_done": () => { "app.initialization.finish": () => {
this.setState({ renderInitialization: false }) this.setState({ renderInitialization: false })
}, },
"app.crash": (message, error) => { "app.crash": (message, error) => {
@ -106,11 +106,11 @@ export class RouteRender extends EvitePureComponent {
export class RenderCore extends Core { export class RenderCore extends Core {
progressBar = progressBar.configure({ parent: "html", showSpinner: false }) progressBar = progressBar.configure({ parent: "html", showSpinner: false })
publicMethods = { publicMethods = {
bindContexts: RenderCore.bindContexts, bindContexts: RenderCore.bindContexts,
} }
initialize = () => { initialize = () => {
const defaultTransitionDelay = 150 const defaultTransitionDelay = 150