mirror of
https://github.com/unraid/api.git
synced 2026-01-04 07:29:48 -06:00
fix(web): Update OS auto redirect loop with account
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user