Updates
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -6,5 +6,5 @@
|
|||||||
/tables/*
|
/tables/*
|
||||||
/Properties/
|
/Properties/
|
||||||
/.idea/
|
/.idea/
|
||||||
/wwwroot/scripts/js/*
|
/wwwroot/scripts/js/
|
||||||
/wwwroot/styles/css/*
|
/wwwroot/styles/css/*
|
||||||
|
|||||||
@@ -74,6 +74,9 @@ const loadRoom = (roomToLoad) => {
|
|||||||
const decorationsInRoom = Floorplan.decorations.filter(decoration => decoration.decoration_room == roomToLoad.id);
|
const decorationsInRoom = Floorplan.decorations.filter(decoration => decoration.decoration_room == roomToLoad.id);
|
||||||
decorationsInRoom.forEach(decoration => createDecorationShape(decoration, false));
|
decorationsInRoom.forEach(decoration => createDecorationShape(decoration, false));
|
||||||
tablesInRoom.forEach(createTableShape);
|
tablesInRoom.forEach(createTableShape);
|
||||||
|
if (!isInMode('edit')) {
|
||||||
|
deselectTables();
|
||||||
|
}
|
||||||
Floorplan.currentRoom = roomToLoad;
|
Floorplan.currentRoom = roomToLoad;
|
||||||
};
|
};
|
||||||
const getRoomById = (roomId) => {
|
const getRoomById = (roomId) => {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -120,7 +120,9 @@ const loadRoom = (roomToLoad: room) => {
|
|||||||
const decorationsInRoom = Floorplan.decorations.filter(decoration => decoration.decoration_room == roomToLoad.id)
|
const decorationsInRoom = Floorplan.decorations.filter(decoration => decoration.decoration_room == roomToLoad.id)
|
||||||
decorationsInRoom.forEach(decoration => createDecorationShape(decoration, false))
|
decorationsInRoom.forEach(decoration => createDecorationShape(decoration, false))
|
||||||
tablesInRoom.forEach(createTableShape)
|
tablesInRoom.forEach(createTableShape)
|
||||||
|
if(!isInMode('edit')) {
|
||||||
|
deselectTables()
|
||||||
|
}
|
||||||
Floorplan.currentRoom = roomToLoad
|
Floorplan.currentRoom = roomToLoad
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user