mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
added initialization steps finish events
This commit is contained in:
parent
1be4ed3c61
commit
14d6ac9954
@ -314,6 +314,8 @@ class App extends React.Component {
|
||||
async () => {
|
||||
try {
|
||||
await app.ApiController.attachAPIConnection()
|
||||
|
||||
app.eventBus.emit("app.initialization.api_success")
|
||||
} catch (error) {
|
||||
app.eventBus.emit("app.initialization.api_error", error)
|
||||
|
||||
@ -326,6 +328,8 @@ class App extends React.Component {
|
||||
async () => {
|
||||
try {
|
||||
await this.__SessionInit()
|
||||
|
||||
app.eventBus.emit("app.initialization.session_success")
|
||||
} catch (error) {
|
||||
app.eventBus.emit("app.initialization.session_error", error)
|
||||
|
||||
@ -338,6 +342,8 @@ class App extends React.Component {
|
||||
async () => {
|
||||
try {
|
||||
await this.__UserInit()
|
||||
|
||||
app.eventBus.emit("app.initialization.user_success")
|
||||
} catch (error) {
|
||||
app.eventBus.emit("app.initialization.user_error", error)
|
||||
|
||||
@ -350,6 +356,8 @@ class App extends React.Component {
|
||||
async () => {
|
||||
try {
|
||||
await this.__WSInit()
|
||||
|
||||
app.eventBus.emit("app.initialization.ws_success")
|
||||
} catch (error) {
|
||||
app.eventBus.emit("app.initialization.ws_error", error)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user