accounts: hide js/ombi checks when not enabled correctly on modify

settings
This commit is contained in:
Harvey Tindall
2025-11-28 20:52:37 +00:00
parent cbff3085fa
commit 1a0e32504f
2 changed files with 24 additions and 25 deletions

View File

@@ -103,14 +103,18 @@
<input type="checkbox" id="modify-user-homescreen" checked>
<span>{{ .strings.applyHomescreenLayout }}</span>
</label>
<label class="switch">
<input type="checkbox" id="modify-user-ombi" checked>
<span>{{ .strings.applyOmbi }}</span>
</label>
<label class="switch">
<input type="checkbox" id="modify-user-jellyseerr" checked>
<span>{{ .strings.applyJellyseerr }}</span>
</label>
{{ if .ombiEnabled }}
<label class="switch">
<input type="checkbox" id="modify-user-ombi" checked>
<span>{{ .strings.applyOmbi }}</span>
</label>
{{ end }}
{{ if .jellyseerrEnabled }}
<label class="switch">
<input type="checkbox" id="modify-user-jellyseerr" checked>
<span>{{ .strings.applyJellyseerr }}</span>
</label>
{{ end }}
<label>
<input type="submit" class="unfocused">
<span class="button ~urge @low full-width center supra submit">{{ .strings.apply }}</span>