Add option to partially disable webui version updated info

This commit is contained in:
schroda
2026-01-25 17:53:32 +01:00
parent 4d7eb74a56
commit 749c81eef1
7 changed files with 36 additions and 5 deletions

View File

@@ -8,5 +8,6 @@
export type MetadataUpdateSettings = {
webUIInformAvailableUpdate: boolean;
webUIInformVersionUpdated: boolean;
serverInformAvailableUpdate: boolean;
};

View File

@@ -43,7 +43,8 @@ export const WebUIUpdateChecker = () => {
const [open, setOpen] = useState(false);
const {
settings: { webUIInformAvailableUpdate },
settings: { webUIInformAvailableUpdate, webUIInformVersionUpdated },
loading: areMetadataServerSettingsLoading,
} = useMetadataServerSettings();
const serverSettings = requestManager.useGetServerSettings();
const isAutoUpdateEnabled = !!serverSettings.data?.settings.webUIUpdateCheckInterval;
@@ -86,8 +87,12 @@ export const WebUIUpdateChecker = () => {
setWebUIVersion(newVersion);
}
if (!isSameAsCurrent && !open) {
setOpen(true);
if (!areMetadataServerSettingsLoading && !isSameAsCurrent && !open) {
if (webUIInformVersionUpdated) {
setOpen(true);
} else {
setWebUIVersion(newVersion);
}
}
useEffect(() => {