refactor: updateOs callback button action

This commit is contained in:
Zack Spear
2024-01-11 18:52:24 -06:00
committed by Zack Spear
parent 7f49816275
commit b1bd71f2e2
3 changed files with 13 additions and 36 deletions

View File

@@ -117,9 +117,9 @@ const disableCallbackButton = computed(() => !acknowledgeBackup.value || flashBa
watchEffect(() => {
if (available.value) {
updateButton.value = updateOsActionsStore.initUpdateOsCallback();
updateButton.value = updateOsActionsStore.updateCallbackButton();
} else {
updateButton.value = updateOsActionsStore.initUpdateOsCallback();
updateButton.value = updateOsActionsStore.updateCallbackButton();
}
if (flashBackupBasicStatus.value === 'complete') {
acknowledgeBackup.value = true; // auto check the box

View File

@@ -47,9 +47,9 @@ const updateButton = ref<UserProfileLink | undefined>();
watchEffect(() => {
if (availableWithRenewal.value) {
updateButton.value = updateOsActionsStore.initUpdateOsCallback();
updateButton.value = updateOsActionsStore.updateCallbackButton();
} else {
updateButton.value = updateOsActionsStore.initUpdateOsCallback();
updateButton.value = updateOsActionsStore.updateCallbackButton();
}
});
</script>