Skip to content

Commit 46aeb74

Browse files
committed
Fixed minor problems on mac
1 parent 78e915c commit 46aeb74

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

‎example/src/main/java/dev/mhh/cloner/example/controller/MovableDataController.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void exportElements(
5555
return;
5656
}
5757

58-
response.setContentType("text/plain");
58+
response.setContentType("application/zip");
5959
response.setHeader("Content-Disposition", "attachment; filename=entities.zip");
6060

6161
final var cloneConfiguration = CloneConfiguration.builder()

‎example/src/main/resources/templates/index.html‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ <h3>Elements</h3>
4242
<tbody>
4343
<tr th:each="el, elStat : ${elements}">
4444
<td>
45-
<input type="checkbox" name="selectedIds" th:value="${el.id}" th:if="${elStat.index == 0}" required />
46-
<input type="checkbox" name="selectedIds" th:value="${el.id}" th:unless="${elStat.index == 0}" />
45+
<input type="checkbox" name="selectedIds" th:value="${el.id}" />
4746
</td>
4847
<td th:text="${el.name}"></td>
4948
<td>
@@ -69,16 +68,14 @@ <h3>Elements</h3>
6968
</form>
7069

7170
<br />
72-
7371
<hr />
74-
7572
<br />
7673

7774
<form th:action="@{/import}" method="post" enctype="multipart/form-data">
7875
<label for="file">After exporting from a different environment, the entities can be imported here:</label>
7976
<br />
8077
<br />
81-
<input id="file" type="file" name="file" required />
78+
<input id="file" type="file" name="file" required accept="application/zip" />
8279
<button type="submit">Import</button>
8380
</form>
8481
</main>

0 commit comments

Comments
 (0)