Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
siibra-explorer
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiao Gui
siibra-explorer
Commits
766b1537
Commit
766b1537
authored
5 years ago
by
Xiao Gui
Browse files
Options
Downloads
Patches
Plain Diff
bugfix: importing duplicated keys
parent
404eaa1d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/services/state/userConfigState.store.ts
+7
-2
7 additions, 2 deletions
src/services/state/userConfigState.store.ts
with
7 additions
and
2 deletions
src/services/state/userConfigState.store.ts
+
7
−
2
View file @
766b1537
...
...
@@ -6,9 +6,14 @@ import { shareReplay, withLatestFrom, map, distinctUntilChanged, filter, take, s
import
{
generateLabelIndexId
,
recursiveFindRegionWithLabelIndexId
,
IavRootStoreInterface
}
from
"
../stateStore.service
"
;
import
{
SELECT_REGIONS
,
NEWVIEWER
,
SELECT_PARCELLATION
}
from
"
./viewerState.store
"
;
import
{
DialogService
}
from
"
../dialogService.service
"
;
import
{
ACTION_TYPES
as
VIEWER_CONFIG_ACTION_TYPES
}
from
"
./viewerConfig.store
"
;
import
{
LOCAL_STORAGE_CONST
}
from
"
src/util//constants
"
;
// Get around the problem of importing duplicated string (ACTION_TYPES), even using ES6 alias seems to trip up the compiler
// TODO file bug and reverse
import
*
as
viewerConfigStore
from
'
./viewerConfig.store
'
const
SET_MOBILE_UI
=
viewerConfigStore
.
ACTION_TYPES
.
SET_MOBILE_UI
export
interface
StateInterface
{
savedRegionsSelection
:
RegionSelection
[]
}
...
...
@@ -274,7 +279,7 @@ export class UserConfigStateUseEffect implements OnDestroy{
this
.
subscriptions
.
push
(
this
.
actions$
.
pipe
(
ofType
(
VIEWER_CONFIG_ACTION_TYPES
.
SET_MOBILE_UI
),
ofType
(
SET_MOBILE_UI
),
map
((
action
:
any
)
=>
{
const
{
payload
}
=
action
const
{
useMobileUI
}
=
payload
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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