Skip to content

Commit cb13d2d

Browse files
authored
Fix some settings (#913)
1 parent c3f597f commit cb13d2d

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

backend/src/main/resources/templates/admin.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<div class="content">
1515
<h1><ins>Rendezői oldal</ins>
1616
<span class="material-symbols-outlined color-yellow star-button"
17-
th:class="|material-symbols-outlined color-yellow star-button ${userContext.favoriteMenus.contains('Rendezői oldal') ? 'favorite' : ''}|"
17+
th:class="|material-symbols-outlined color-yellow star-button ${#lists.contains(userContext.favoriteMenus, 'Rendezői oldal') ? 'favorite' : ''}|"
1818
id="star-page"
1919
data-star="Rendezői oldal"
2020
onclick="toggleStarred(this.getAttribute('data-star')); return false">star</span>

backend/src/main/resources/templates/componentSettings.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
<div class="content">
186186
<h1 class="narrow"><ins th:text="${title}">View edit</ins>
187187
<span class="material-symbols-outlined color-yellow star-button"
188-
th:class="|material-symbols-outlined color-yellow star-button ${userContext.favoriteMenus.contains(title) ? 'favorite' : ''}|"
188+
th:class="|material-symbols-outlined color-yellow star-button ${#lists.contains(userContext.favoriteMenus, title) ? 'favorite' : ''}|"
189189
id="star-page"
190190
th:data-star="${title}"
191191
onclick="toggleStarred(this.getAttribute('data-star')); return false">star</span>
@@ -458,17 +458,17 @@ <h4 th:text="${input.fieldName}" th:id="|_${input.property}|">Group Name</h4>
458458
<table>
459459
<tr th:each="role : ${T(hu.bme.sch.cmsch.setting.MinRoleSettingRef).Companion.ALL_POSSIBLE_ROLES}">
460460

461-
<td th:text="${role.name()}" th:class="${input.serializer.grantedRoles.contains(role) ? 'disabled' : ''}">BASIC</td>
461+
<td th:text="${role.name()}" th:class="${#sets.contains(input.serializer.grantedRoles, role) ? 'disabled' : ''}">BASIC</td>
462462
<td>
463-
<label th:class="|switch ${input.serializer.grantedRoles.contains(role) ? 'disabled' : ''}|"
463+
<label th:class="|switch ${#sets.contains(input.serializer.grantedRoles, role) ? 'disabled' : ''}|"
464464
th:data-param1="${input.property}" th:data-param2="${role.name()}"
465465
th:onclick="|changeRoleField(this.getAttribute('data-param1'), this.getAttribute('data-param2'))|">
466466
<input type="checkbox"
467-
th:disabled="${input.serializer.grantedRoles.contains(role)}"
468-
th:checked="${input.serializer.grantedRoles.contains(role)}"
467+
th:disabled="${#sets.contains(input.serializer.grantedRoles, role)}"
468+
th:checked="${#sets.contains(input.serializer.grantedRoles, role)}"
469469
th:name="|${input.property}_${role.name()}|"
470-
th:id="|${input.property}_${role.name()}${input.serializer.grantedRoles.contains(role) ? '_' : ''}|"/>
471-
<span th:class="|slider ${input.serializer.grantedRoles.contains(role) ? 'disabled' : ''}|"></span>
470+
th:id="|${input.property}_${role.name()}${#sets.contains(input.serializer.grantedRoles, role) ? '_' : ''}|"/>
471+
<span th:class="|slider ${#sets.contains(input.serializer.grantedRoles, role) ? 'disabled' : ''}|"></span>
472472
</label>
473473
</td>
474474
</tr>

backend/src/main/resources/templates/dashboard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<div class="content">
2020
<h1 th:class="${wide ? '' : 'narrow'}"><ins th:text="${title}">Dashboard</ins>
2121
<span class="material-symbols-outlined color-yellow star-button"
22-
th:class="|material-symbols-outlined color-yellow star-button ${userContext.favoriteMenus.contains(title) ? 'favorite' : ''}|"
22+
th:class="|material-symbols-outlined color-yellow star-button ${#lists.contains(userContext.favoriteMenus, title) ? 'favorite' : ''}|"
2323
id="star-page"
2424
th:data-star="${title}"
2525
onclick="toggleStarred(this.getAttribute('data-star')); return false">star</span>

backend/src/main/resources/templates/layout4.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ <h3 class="username" th:text="${userContext.userName}">John Doe</h3>
256256
th:each="entry : ${category.value}"
257257
th:data-search="${entry.title}"
258258
th:href="|${entry.target}|"
259-
th:class="${userContext.favoriteMenus.contains(entry.title) ? 'favorite' : ''}"><span class="material-symbols-outlined" th:text="${entry.icon}">dashboard</span><span th:text="${entry.title}">Dashboard</span></a>
259+
th:class="${#lists.contains(userContext.favoriteMenus, entry.title) ? 'favorite' : ''}"><span class="material-symbols-outlined" th:text="${entry.icon}">dashboard</span><span th:text="${entry.title}">Dashboard</span></a>
260260
</div>
261261
</object>
262262
</div>

backend/src/main/resources/templates/overview4.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<div class="content">
1515
<h1><ins th:text="${title}">Rendezői Oldal</ins>
1616
<span class="material-symbols-outlined color-yellow star-button"
17-
th:class="|material-symbols-outlined color-yellow star-button ${userContext.favoriteMenus.contains(title) ? 'favorite' : ''}|"
17+
th:class="|material-symbols-outlined color-yellow star-button ${#lists.contains(userContext.favoriteMenus, title) ? 'favorite' : ''}|"
1818
id="star-page"
1919
th:data-star="${title}"
2020
onclick="toggleStarred(this.getAttribute('data-star')); return false">star</span>

backend/src/main/resources/templates/settings.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h4>Kedvenc oldalak</h4>
2424
<td th:text="${favorite}" class="basic-padding"></td>
2525
<td class="basic-padding">
2626
<span class="material-symbols-outlined color-yellow star-button"
27-
th:class="|material-symbols-outlined color-yellow star-button ${userContext.favoriteMenus.contains(favorite) ? 'favorite' : ''}|"
27+
th:class="|material-symbols-outlined color-yellow star-button ${#lists.contains(userContext.favoriteMenus, favorite) ? 'favorite' : ''}|"
2828
id="star-page"
2929
th:data-star="${favorite}"
3030
onclick="toggleStarred(this.getAttribute('data-star')); return false">star</span>

backend/src/main/resources/templates/shareLocation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<div class="content">
1515
<h1 class="narrow"><ins>Helymeghatározás</ins>
1616
<span class="material-symbols-outlined color-yellow star-button"
17-
th:class="|material-symbols-outlined color-yellow star-button ${userContext.favoriteMenus.contains('Helymeghatározás') ? 'favorite' : ''}|"
17+
th:class="|material-symbols-outlined color-yellow star-button ${#lists.contains(userContext.favoriteMenus, 'Helymeghatározás') ? 'favorite' : ''}|"
1818
id="star-page"
1919
data-star="Helymeghatározás"
2020
onclick="toggleStarred(this.getAttribute('data-star')); return false">star</span>

backend/src/main/resources/templates/uploadFile.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<div class="content">
1515
<h1 class="narrow"><ins>Fájlfeltöltés</ins>
1616
<span class="material-symbols-outlined color-yellow star-button"
17-
th:class="|material-symbols-outlined color-yellow star-button ${userContext.favoriteMenus.contains('Fájlfeltöltés') ? 'favorite' : ''}|"
17+
th:class="|material-symbols-outlined color-yellow star-button ${#lists.contains(userContext.favoriteMenus, 'Fájlfeltöltés') ? 'favorite' : ''}|"
1818
id="star-page"
1919
data-star="Fájlfeltöltés"
2020
onclick="toggleStarred(this.getAttribute('data-star')); return false">star</span>

0 commit comments

Comments
 (0)