feat(ui): hide OnlyOffice option unless already enabled

AI-assistant: Claude Code 2.1.162 (Claude Opus 4.8)
Signed-off-by: Julius Knorr <jus@bitgrid.net>
This commit is contained in:
Julius Knorr
2026-06-03 22:00:35 +02:00
parent 81ae4a2c49
commit 7679994ee5
2 changed files with 5 additions and 1 deletions

View File

@@ -599,6 +599,10 @@ input[type="checkbox"]:disabled:not(:checked) + label {
pointer-events: none;
}
.office-card-hidden {
display: none;
}
.office-card:hover {
border-color: var(--color-primary-element);
box-shadow: 0 4px 12px rgba(0, 130, 201, 0.15);

View File

@@ -58,7 +58,7 @@
checked="checked"
{% endif %}
>
<label class="office-card{{ isAnyRunning ? ' office-card-disabled' : '' }}" for="office-onlyoffice">
<label class="office-card{{ isAnyRunning ? ' office-card-disabled' : '' }}{{ is_onlyoffice_enabled == false ? ' office-card-hidden' : '' }}" for="office-onlyoffice">
<div class="office-card-header">
<h4>OnlyOffice</h4>
<svg class="office-checkmark" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">