Skip to content
Snippets Groups Projects
Commit 91f794d4 authored by Ruben Backx's avatar Ruben Backx :coffee:
Browse files

Fix room select on lab copy

parent 69ea4219
Branches main
No related tags found
2 merge requests!720Version 2.2.2,!717Resolve "Room select gets deselected when copying a lab"
...@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
- The about page was not accessible. [@rwbackx](https://gitlab.ewi.tudelft.nl/rwbackx) - The about page was not accessible. [@rwbackx](https://gitlab.ewi.tudelft.nl/rwbackx)
- When copying a session, the rooms would not get copied over properly. [@rwbackx](https://gitlab.ewi.tudelft.nl/rwbackx)
## [2.2.1] ## [2.2.1]
......
...@@ -113,7 +113,13 @@ ...@@ -113,7 +113,13 @@
<label for="room-select">Rooms</label> <label for="room-select">Rooms</label>
<div> <div>
<select multiple id="room-select" th:field="*{rooms}" data-select disabled data-placeholder="Pick a room"> <select
multiple
id="room-select"
th:field="*{rooms}"
data-select
th:disabled="${#lists.isEmpty(dto.roomDetails())}"
data-placeholder="Pick a room">
<th:block th:each="room : ${rooms}"> <th:block th:each="room : ${rooms}">
<option <option
th:value="${room.id}" th:value="${room.id}"
...@@ -124,6 +130,9 @@ ...@@ -124,6 +130,9 @@
</th:block> </th:block>
</select> </select>
</div> </div>
<script th:unless="${#lists.isEmpty(dto.roomDetails())}">
document.addEventListener("ComponentsLoaded", updateRooms);
</script>
<label for="online-mode-select">Online Modes</label> <label for="online-mode-select">Online Modes</label>
<div> <div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment