mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-17 04:01:13 +00:00
fix: apply btn-field class to disabled update buttons in self-update modal
This commit is contained in:
parent
b94d4b79ae
commit
0bbc657dd3
2 changed files with 4 additions and 0 deletions
|
|
@ -569,6 +569,8 @@ def test_self_update_modal_uses_standard_select_and_manual_backup():
|
|||
assert "quickComparisonIcon" in content
|
||||
assert "quickComparisonIconClass" in content
|
||||
assert "{ spinning: $store.selfUpdateStore.isCheckingStatus }" in content
|
||||
assert "{ 'btn-field': !$store.selfUpdateStore.quickUpdateAvailable }" in content
|
||||
assert "{ 'btn-field': !$store.selfUpdateStore.canScheduleUpdate }" in content
|
||||
assert "formatReleaseTimestamp($store.selfUpdateStore.currentReleasedAt)" in content
|
||||
assert "formatReleaseTimestamp($store.selfUpdateStore.mainBranchLatestReleasedAt)" in content
|
||||
assert "Latest version" in content
|
||||
|
|
|
|||
|
|
@ -475,6 +475,7 @@
|
|||
<button
|
||||
type="button"
|
||||
class="btn btn-ok"
|
||||
:class="{ 'btn-field': !$store.selfUpdateStore.quickUpdateAvailable }"
|
||||
@click="$store.selfUpdateStore.scheduleQuickUpdate()"
|
||||
:disabled="!$store.selfUpdateStore.quickUpdateAvailable"
|
||||
>
|
||||
|
|
@ -485,6 +486,7 @@
|
|||
<button
|
||||
type="button"
|
||||
class="btn btn-ok"
|
||||
:class="{ 'btn-field': !$store.selfUpdateStore.canScheduleUpdate }"
|
||||
@click="$store.selfUpdateStore.scheduleUpdate()"
|
||||
:disabled="!$store.selfUpdateStore.canScheduleUpdate"
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue