web app can create and join sessions, updated node info panel and edge info panel
This commit is contained in:
parent
cd949340ac
commit
b1b05a7eaa
6 changed files with 91 additions and 24 deletions
|
@ -92,15 +92,14 @@ class CoreRest {
|
|||
const session = {id: 0, state: 0};
|
||||
|
||||
if (sessions.length) {
|
||||
this.currentSession = sessions[0].id;
|
||||
session.id = sessions[0].id;
|
||||
session.state = sessions[0].state;
|
||||
} else {
|
||||
response = await this.createSession();
|
||||
this.currentSession = response.id;
|
||||
session.id = response.id;
|
||||
session.state = response.state;
|
||||
}
|
||||
|
||||
session.id = this.currentSession;
|
||||
return session;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue