Skip to content

Commit 0bbc657

Browse files
committed
fix: apply btn-field class to disabled update buttons in self-update modal
1 parent b94d4b7 commit 0bbc657

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/test_self_update_tag_filter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,8 @@ def test_self_update_modal_uses_standard_select_and_manual_backup():
569569
assert "quickComparisonIcon" in content
570570
assert "quickComparisonIconClass" in content
571571
assert "{ spinning: $store.selfUpdateStore.isCheckingStatus }" in content
572+
assert "{ 'btn-field': !$store.selfUpdateStore.quickUpdateAvailable }" in content
573+
assert "{ 'btn-field': !$store.selfUpdateStore.canScheduleUpdate }" in content
572574
assert "formatReleaseTimestamp($store.selfUpdateStore.currentReleasedAt)" in content
573575
assert "formatReleaseTimestamp($store.selfUpdateStore.mainBranchLatestReleasedAt)" in content
574576
assert "Latest version" in content

webui/components/settings/external/self-update-modal.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@
475475
<button
476476
type="button"
477477
class="btn btn-ok"
478+
:class="{ 'btn-field': !$store.selfUpdateStore.quickUpdateAvailable }"
478479
@click="$store.selfUpdateStore.scheduleQuickUpdate()"
479480
:disabled="!$store.selfUpdateStore.quickUpdateAvailable"
480481
>
@@ -485,6 +486,7 @@
485486
<button
486487
type="button"
487488
class="btn btn-ok"
489+
:class="{ 'btn-field': !$store.selfUpdateStore.canScheduleUpdate }"
488490
@click="$store.selfUpdateStore.scheduleUpdate()"
489491
:disabled="!$store.selfUpdateStore.canScheduleUpdate"
490492
>

0 commit comments

Comments
 (0)