Show webUI version updated info for first detected update
In case the webUI has never been updated yet, the info dialog was not opened after an update. This was caused due to the current version always being undefined, since it was never written to the local storage
This commit is contained in:
@@ -69,6 +69,11 @@ export const WebUIUpdateChecker = () => {
|
||||
const newVersion = aboutWebUI?.tag;
|
||||
const isSameAsCurrent = !newVersion || !webUIVersion || webUIVersion === newVersion;
|
||||
|
||||
const saveInitialVersion = !webUIVersion && !!newVersion;
|
||||
if (saveInitialVersion) {
|
||||
setWebUIVersion(newVersion);
|
||||
}
|
||||
|
||||
if (!isSameAsCurrent && !open) {
|
||||
setOpen(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user