Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • minerva/frontend
1 result
Show changes
Commits on Source (2)
...@@ -6,6 +6,8 @@ import { useAppDispatch } from '@/redux/hooks/useAppDispatch'; ...@@ -6,6 +6,8 @@ import { useAppDispatch } from '@/redux/hooks/useAppDispatch';
import { openLegend } from '@/redux/legend/legend.slice'; import { openLegend } from '@/redux/legend/legend.slice';
import { openPluginsDrawer } from '@/redux/plugins/plugins.slice'; import { openPluginsDrawer } from '@/redux/plugins/plugins.slice';
import { IconButton } from '@/shared/IconButton'; import { IconButton } from '@/shared/IconButton';
import { store } from '@/redux/store';
import Image from 'next/image'; import Image from 'next/image';
export const NavBar = (): JSX.Element => { export const NavBar = (): JSX.Element => {
...@@ -28,6 +30,9 @@ export const NavBar = (): JSX.Element => { ...@@ -28,6 +30,9 @@ export const NavBar = (): JSX.Element => {
dispatch(openLegend()); dispatch(openLegend());
}; };
const configuration = store.getState().configuration.main.data;
const version = configuration ? `(v${configuration.version})` : '';
return ( return (
<div className="flex min-h-full w-[88px] flex-col items-center justify-between overflow-y-auto bg-cultured py-8"> <div className="flex min-h-full w-[88px] flex-col items-center justify-between overflow-y-auto bg-cultured py-8">
<div data-testid="nav-buttons"> <div data-testid="nav-buttons">
...@@ -56,7 +61,7 @@ export const NavBar = (): JSX.Element => { ...@@ -56,7 +61,7 @@ export const NavBar = (): JSX.Element => {
<span className="h-16 w-14 text-center text-[8px] leading-4"> <span className="h-16 w-14 text-center text-[8px] leading-4">
Powered by: MINERVA Platform{' '} Powered by: MINERVA Platform{' '}
<a href={MINERVA_WEBSITE_URL} target="_blank"> <a href={MINERVA_WEBSITE_URL} target="_blank">
(v16.0.8) {version}
</a> </a>
</span> </span>
</div> </div>
......
...@@ -58,6 +58,7 @@ export const fetchInitialAppData = createAsyncThunk< ...@@ -58,6 +58,7 @@ export const fetchInitialAppData = createAsyncThunk<
/** Fetch all data required for rendering map */ /** Fetch all data required for rendering map */
await Promise.all([ await Promise.all([
dispatch(getConfiguration()),
dispatch(getConfigurationOptions()), dispatch(getConfigurationOptions()),
dispatch(getProjectById(PROJECT_ID)), dispatch(getProjectById(PROJECT_ID)),
dispatch(getAllBackgroundsByProjectId(PROJECT_ID)), dispatch(getAllBackgroundsByProjectId(PROJECT_ID)),
...@@ -78,7 +79,6 @@ export const fetchInitialAppData = createAsyncThunk< ...@@ -78,7 +79,6 @@ export const fetchInitialAppData = createAsyncThunk<
// Fetch data needed for export // Fetch data needed for export
dispatch(getStatisticsById(PROJECT_ID)); dispatch(getStatisticsById(PROJECT_ID));
dispatch(getConfiguration());
// Fetch plugins list // Fetch plugins list
dispatch(getAllPlugins()); dispatch(getAllPlugins());
......