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
ebf086bb
Commit
ebf086bb
authored
Feb 13, 2020
by
Tristan Read
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix hot module reload for error tracking pages
parent
1b6bb9f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
24 deletions
+28
-24
app/assets/javascripts/error_tracking/details.js
app/assets/javascripts/error_tracking/details.js
+12
-10
app/assets/javascripts/error_tracking/list.js
app/assets/javascripts/error_tracking/list.js
+16
-14
No files found.
app/assets/javascripts/error_tracking/details.js
View file @
ebf086bb
...
...
@@ -8,28 +8,30 @@ import csrf from '~/lib/utils/csrf';
Vue
.
use
(
VueApollo
);
export
default
()
=>
{
const
selector
=
'
#js-error_details
'
;
const
domEl
=
document
.
querySelector
(
selector
);
const
{
issueId
,
projectPath
,
issueUpdatePath
,
issueStackTracePath
,
projectIssuesPath
,
}
=
domEl
.
dataset
;
const
apolloProvider
=
new
VueApollo
({
defaultClient
:
createDefaultClient
(),
});
// eslint-disable-next-line no-new
new
Vue
({
el
:
'
#js-error_details
'
,
el
:
selector
,
apolloProvider
,
components
:
{
ErrorDetails
,
},
store
,
render
(
createElement
)
{
const
domEl
=
document
.
querySelector
(
this
.
$options
.
el
);
const
{
issueId
,
projectPath
,
issueUpdatePath
,
issueStackTracePath
,
projectIssuesPath
,
}
=
domEl
.
dataset
;
return
createElement
(
'
error-details
'
,
{
props
:
{
issueId
,
...
...
app/assets/javascripts/error_tracking/list.js
View file @
ebf086bb
...
...
@@ -4,27 +4,29 @@ import store from './store';
import
ErrorTrackingList
from
'
./components/error_tracking_list.vue
'
;
export
default
()
=>
{
const
selector
=
'
#js-error_tracking
'
;
const
domEl
=
document
.
querySelector
(
selector
);
const
{
indexPath
,
enableErrorTrackingLink
,
illustrationPath
,
projectPath
,
listPath
,
}
=
domEl
.
dataset
;
let
{
errorTrackingEnabled
,
userCanEnableErrorTracking
}
=
domEl
.
dataset
;
errorTrackingEnabled
=
parseBoolean
(
errorTrackingEnabled
);
userCanEnableErrorTracking
=
parseBoolean
(
userCanEnableErrorTracking
);
// eslint-disable-next-line no-new
new
Vue
({
el
:
'
#js-error_tracking
'
,
el
:
selector
,
components
:
{
ErrorTrackingList
,
},
store
,
render
(
createElement
)
{
const
domEl
=
document
.
querySelector
(
this
.
$options
.
el
);
const
{
indexPath
,
enableErrorTrackingLink
,
illustrationPath
,
projectPath
,
listPath
,
}
=
domEl
.
dataset
;
let
{
errorTrackingEnabled
,
userCanEnableErrorTracking
}
=
domEl
.
dataset
;
errorTrackingEnabled
=
parseBoolean
(
errorTrackingEnabled
);
userCanEnableErrorTracking
=
parseBoolean
(
userCanEnableErrorTracking
);
return
createElement
(
'
error-tracking-list
'
,
{
props
:
{
indexPath
,
...
...
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