Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Géocontrib Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
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
GéoContrib
Géocontrib Frontend
Commits
66b022c8
Commit
66b022c8
authored
2 years ago
by
Timothee P
Browse files
Options
Downloads
Patches
Plain Diff
get basemaps even if not authenticated
parent
13805540
No related branches found
No related tags found
2 merge requests
!424
version 3.1.0
,
!410
REDMINE_ISSUE-13848|Si on n'est pas connecté, on ne vois pas les fonds de plan customisés
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/store/modules/projects.store.js
+2
-4
2 additions, 4 deletions
src/store/modules/projects.store.js
with
2 additions
and
4 deletions
src/store/modules/projects.store.js
+
2
−
4
View file @
66b022c8
...
@@ -115,14 +115,12 @@ const projectsStore = {
...
@@ -115,14 +115,12 @@ const projectsStore = {
return
project
;
return
project
;
},
},
async
GET_PROJECT_INFO
({
rootState
,
dispatch
},
slug
)
{
async
GET_PROJECT_INFO
({
dispatch
},
slug
)
{
const
promises
=
[
const
promises
=
[
dispatch
(
'
GET_PROJECT_LAST_MESSAGES
'
,
slug
).
then
(
response
=>
response
),
dispatch
(
'
GET_PROJECT_LAST_MESSAGES
'
,
slug
).
then
(
response
=>
response
),
dispatch
(
'
feature-type/GET_PROJECT_FEATURE_TYPES
'
,
slug
,
{
root
:
true
}).
then
(
response
=>
response
),
dispatch
(
'
feature-type/GET_PROJECT_FEATURE_TYPES
'
,
slug
,
{
root
:
true
}).
then
(
response
=>
response
),
dispatch
(
'
map/GET_BASEMAPS
'
,
slug
,
{
root
:
true
}).
then
(
response
=>
response
)
];
];
if
(
rootState
.
user
)
{
promises
.
push
(
dispatch
(
'
map/GET_BASEMAPS
'
,
slug
,
{
root
:
true
}).
then
(
response
=>
response
));
}
const
promiseResult
=
await
Promise
.
all
(
promises
);
const
promiseResult
=
await
Promise
.
all
(
promises
);
return
promiseResult
;
return
promiseResult
;
...
...
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