Improve document tabs and allow user to create new documents manually

This commit is contained in:
Marcel
2019-03-07 16:13:08 +01:00
parent 186c28c8e7
commit 1bf43ef28d
5 changed files with 88 additions and 16 deletions

View File

@@ -58,7 +58,6 @@ function parseFromJson(json) {
doc.states = doc.states.map(state => Object.assign(new State(0, 0), state));
doc.connections = doc.connections.map(connection => {
console.log(connection.type);
switch(connection.type) {
case 'Connection':
connection = Object.assign(new Connection(null, null), connection);
@@ -77,7 +76,6 @@ function parseFromJson(json) {
connection = Object.assign(new StartConnection(), connection);
connection.state = doc.states.find(state => state.id === connection.state);
console.log(connection.state);
break;
}