mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 19:14:16 +00:00
fix events namigs
This commit is contained in:
parent
2b262f3e47
commit
8353de34a2
@ -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 () => {
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user