1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-08 07:15:23 +02:00

fix(sidebar): rework the update notification [EE-4119] (#7575)

This commit is contained in:
itsconquest 2022-08-30 10:00:12 +12:00 committed by GitHub
parent d24e5ff71e
commit c79be58700
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 71 additions and 15 deletions

View file

@ -5,6 +5,7 @@ import { useLocalStorage } from '@/portainer/hooks/useLocalStorage';
interface UIState {
dismissedInfoPanels: Record<string, string>;
dismissedInfoHash: string;
dismissedUpdateVersion: string;
}
type UIStateService = [UIState, (state: UIState) => void];

View file

@ -26,6 +26,7 @@ function StateManagerFactory(
dismissedInfoPanels: {},
dismissedInfoHash: '',
timesPasswordChangeSkipped: {},
dismissedUpdateVersion: '',
},
};