Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c864d691
Commit
c864d691
authored
Mar 13, 2020
by
Mark Florian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consistently set dashboardType
parent
d40497d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
ee/app/assets/javascripts/security_dashboard/instance_init.js
...pp/assets/javascripts/security_dashboard/instance_init.js
+5
-1
ee/app/assets/javascripts/security_dashboard/project_init.js
ee/app/assets/javascripts/security_dashboard/project_init.js
+5
-1
No files found.
ee/app/assets/javascripts/security_dashboard/instance_init.js
View file @
c864d691
...
...
@@ -3,6 +3,7 @@ import createRouter from './store/router';
import
projectSelector
from
'
./store/plugins/project_selector
'
;
import
syncWithRouter
from
'
./store/plugins/sync_with_router
'
;
import
createStore
from
'
./store
'
;
import
{
DASHBOARD_TYPES
}
from
'
./store/constants
'
;
import
InstanceSecurityDashboard
from
'
./components/instance_security_dashboard.vue
'
;
export
default
()
=>
{
...
...
@@ -19,7 +20,10 @@ export default () => {
vulnerableProjectsEndpoint
,
}
=
el
.
dataset
;
const
router
=
createRouter
();
const
store
=
createStore
({
plugins
:
[
projectSelector
,
syncWithRouter
(
router
)]
});
const
store
=
createStore
({
dashboardType
:
DASHBOARD_TYPES
.
INSTANCE
,
plugins
:
[
projectSelector
,
syncWithRouter
(
router
)],
});
return
new
Vue
({
el
,
...
...
ee/app/assets/javascripts/security_dashboard/project_init.js
View file @
c864d691
...
...
@@ -2,6 +2,7 @@ import Vue from 'vue';
import
createRouter
from
'
./store/router
'
;
import
syncWithRouter
from
'
./store/plugins/sync_with_router
'
;
import
createStore
from
'
./store
'
;
import
{
DASHBOARD_TYPES
}
from
'
./store/constants
'
;
import
ProjectSecurityDashboard
from
'
./components/project_security_dashboard.vue
'
;
import
{
parseBoolean
}
from
'
~/lib/utils/common_utils
'
;
...
...
@@ -73,7 +74,10 @@ export default () => {
}
const
router
=
createRouter
();
const
store
=
createStore
({
plugins
:
[
syncWithRouter
(
router
)]
});
const
store
=
createStore
({
dashboardType
:
DASHBOARD_TYPES
.
PROJECT
,
plugins
:
[
syncWithRouter
(
router
)],
});
return
new
Vue
({
el
:
securityTab
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment