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
f2c6c48f
Commit
f2c6c48f
authored
Apr 09, 2022
by
Tristan Read
Committed by
Sean Arnold
Apr 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make store conditional and fix lint errors
parent
a8bc72f3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
app/assets/javascripts/vue_shared/alert_details/components/alert_details.vue
...pts/vue_shared/alert_details/components/alert_details.vue
+1
-2
app/assets/javascripts/vue_shared/alert_details/index.js
app/assets/javascripts/vue_shared/alert_details/index.js
+4
-3
No files found.
app/assets/javascripts/vue_shared/alert_details/components/alert_details.vue
View file @
f2c6c48f
...
...
@@ -11,13 +11,12 @@ import {
GlButton
,
GlSafeHtmlDirective
,
}
from
'
@gitlab/ui
'
;
import
{
mapState
,
mapActions
}
from
'
vuex
'
;
import
*
as
Sentry
from
'
@sentry/browser
'
;
import
highlightCurrentUser
from
'
~/behaviors/markdown/highlight_current_user
'
;
import
{
fetchPolicies
}
from
'
~/lib/graphql
'
;
import
{
toggleContainerClasses
}
from
'
~/lib/utils/dom_utils
'
;
import
{
visitUrl
,
joinPaths
}
from
'
~/lib/utils/url_utility
'
;
import
{
__
,
s__
}
from
'
~/locale
'
;
import
{
s__
}
from
'
~/locale
'
;
import
Tracking
from
'
~/tracking
'
;
import
initUserPopovers
from
'
~/user_popovers
'
;
import
AlertDetailsTable
from
'
~/vue_shared/components/alert_details_table.vue
'
;
...
...
app/assets/javascripts/vue_shared/alert_details/index.js
View file @
f2c6c48f
...
...
@@ -63,18 +63,19 @@ export default (selector) => {
canUpdate
:
parseBoolean
(
canUpdate
),
};
const
opsProperties
=
{};
if
(
page
===
PAGE_CONFIG
.
OPERATIONS
.
TITLE
)
{
const
{
TRACK_ALERTS_DETAILS_VIEWS_OPTIONS
,
TRACK_ALERT_STATUS_UPDATE_OPTIONS
}
=
PAGE_CONFIG
[
page
];
provide
.
trackAlertsDetailsViewsOptions
=
TRACK_ALERTS_DETAILS_VIEWS_OPTIONS
;
provide
.
trackAlertStatusUpdateOptions
=
TRACK_ALERT_STATUS_UPDATE_OPTIONS
;
opsProperties
.
store
=
createStore
({},
service
);
}
else
if
(
page
===
PAGE_CONFIG
.
THREAT_MONITORING
.
TITLE
)
{
provide
.
isThreatMonitoringPage
=
true
;
}
const
store
=
createStore
({},
service
);
// eslint-disable-next-line no-new
new
Vue
({
el
:
selector
,
...
...
@@ -82,7 +83,7 @@ export default (selector) => {
components
:
{
AlertDetails
,
},
store
,
...
opsProperties
,
provide
,
apolloProvider
,
router
,
...
...
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