Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
frontend
Commits
7be1c0a8
Commit
7be1c0a8
authored
11 months ago
by
mateusz-winiarczyk
Browse files
Options
Downloads
Patches
Plain Diff
fix(drawers): fix openning plugin and overlay drawers when ids are in url parameters
parent
44437279
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!223
reset the pin numbers before search results are fetch (so the results will be...
,
!172
fix(drawers): fix openning plugin and overlay drawers when ids are in url parameters
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/redux/root/init.thunks.ts
+14
-1
14 additions, 1 deletion
src/redux/root/init.thunks.ts
with
14 additions
and
1 deletion
src/redux/root/init.thunks.ts
+
14
−
1
View file @
7be1c0a8
import
{
PROJECT_ID
}
from
'
@/constants
'
;
import
{
openSearchDrawerWithSelectedTab
}
from
'
@/redux/drawer/drawer.slice
'
;
import
{
openOverlaysDrawer
,
openSearchDrawerWithSelectedTab
}
from
'
@/redux/drawer/drawer.slice
'
;
import
{
AppDispatch
}
from
'
@/redux/store
'
;
import
{
QueryData
}
from
'
@/types/query
'
;
import
{
getDefaultSearchTab
}
from
'
@/components/FunctionalArea/TopBar/SearchBar/SearchBar.utils
'
;
import
{
PluginsManager
}
from
'
@/services/pluginsManager
'
;
import
{
createAsyncThunk
}
from
'
@reduxjs/toolkit
'
;
import
{
ZERO
}
from
'
@/constants/common
'
;
import
{
getAllBackgroundsByProjectId
}
from
'
../backgrounds/backgrounds.thunks
'
;
import
{
getConfiguration
,
getConfigurationOptions
}
from
'
../configuration/configuration.thunks
'
;
import
{
...
...
@@ -25,6 +26,7 @@ import { setPerfectMatch } from '../search/search.slice';
import
{
getSearchData
}
from
'
../search/search.thunks
'
;
import
{
getStatisticsById
}
from
'
../statistics/statistics.thunks
'
;
import
{
getSessionValid
}
from
'
../user/user.thunks
'
;
import
{
openPluginsDrawer
,
setCurrentDrawerPluginHash
}
from
'
../plugins/plugins.slice
'
;
interface
InitializeAppParams
{
queryData
:
QueryData
;
...
...
@@ -44,6 +46,13 @@ export const fetchInitialAppData = createAsyncThunk<
setHashedPlugin
:
PluginsManager
.
setHashedPlugin
,
}),
);
const
hash
=
queryData
.
pluginsId
[
ZERO
];
if
(
hash
)
{
dispatch
(
openPluginsDrawer
());
dispatch
(
setCurrentDrawerPluginHash
(
hash
));
}
}
/** Fetch all data required for rendering map */
...
...
@@ -90,5 +99,9 @@ export const fetchInitialAppData = createAsyncThunk<
/** fetch overlays */
if
(
queryData
.
overlaysId
)
{
dispatch
(
getInitOverlays
({
overlaysId
:
queryData
.
overlaysId
}));
if
(
!
queryData
.
searchValue
)
{
dispatch
(
openOverlaysDrawer
());
}
}
});
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment