fix(web): Update OS auto redirect loop with account

This commit is contained in:
Zack Spear
2023-11-06 13:15:57 -08:00
parent bb60cbbc18
commit 5483861055

View File

@@ -15,9 +15,9 @@ const updateOsActionsStore = useUpdateOsActionsStore();
const { rebootType } = storeToRefs(updateOsActionsStore);
onBeforeMount(() => {
// On /Tools/Update automatically send the user to account.unraid.net/server/update-os when we're not prompting for reboot
/** when we're not prompting for reboot /Tools/Update will automatically send the user to account.unraid.net/server/update-os */
if (window.location.pathname === WEBGUI_TOOLS_UPDATE.pathname && rebootType.value === '') {
updateOsActionsStore.executeUpdateOsCallback();
updateOsActionsStore.executeUpdateOsCallback('replace');
}
});
</script>