Skip to content
Snippets Groups Projects
Commit 199c0b74 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

first load the overlay then change the background

parent 0d5d6b02
No related branches found
No related tags found
2 merge requests!264Resolve "add support for matomo",!238Resolve "opening overlay issue"
Pipeline #94971 passed
minerva-front (18.0.0~beta.3) stable; urgency=medium
* Bugfix: change background to empty after overlay is loaded so there is no
blank background (#285)
* Bugfix: license info styling (#280)
-- Piotr Gawron <piotr.gawron@uni.lu> Thu, 26 Sep 2024 13:00:00 +0200
......
......@@ -39,12 +39,12 @@ export const useOverlay = (overlayId: number): UseOverlay => {
}
};
const toggleOverlay = (): void => {
const toggleOverlay = async (): Promise<void> => {
if (isOverlayActive) {
dispatch(removeOverlayBioEntityForGivenOverlay({ overlayId }));
} else {
await dispatch(getOverlayBioEntityForAllModels({ overlayId }));
setBackgroundtoEmptyIfAvailable();
dispatch(getOverlayBioEntityForAllModels({ overlayId }));
}
dispatchPluginEvents();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment