Prevent server updated info dialog from auto closing
In case the "dialog to inform about available server updates" was disabled, it also prevented the "dialog to inform that the server has been updated" from being visible.
This commit is contained in:
@@ -68,10 +68,6 @@ export const ServerUpdateChecker = () => {
|
||||
setOpen(true);
|
||||
}
|
||||
|
||||
if (!serverInformAvailableUpdate) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (isCheckingForServerUpdate) {
|
||||
return null;
|
||||
}
|
||||
@@ -81,6 +77,10 @@ export const ServerUpdateChecker = () => {
|
||||
}
|
||||
|
||||
if (isServerUpdateAvailable) {
|
||||
if (!serverInformAvailableUpdate) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const isAboutPage = window.location.pathname === '/settings/about';
|
||||
if (isAboutPage) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user