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
1d8f18f9
Commit
1d8f18f9
authored
Oct 15, 2019
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds default value to mutation
parent
ba799b05
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
+15
-7
app/assets/javascripts/jobs/components/log/line.vue
app/assets/javascripts/jobs/components/log/line.vue
+7
-3
app/assets/javascripts/jobs/components/log/line_header.vue
app/assets/javascripts/jobs/components/log/line_header.vue
+7
-3
app/assets/javascripts/jobs/store/mutations.js
app/assets/javascripts/jobs/store/mutations.js
+1
-1
No files found.
app/assets/javascripts/jobs/components/log/line.vue
View file @
1d8f18f9
...
...
@@ -21,8 +21,12 @@ export default {
<
template
>
<div
class=
"js-line log-line"
>
<line-number
:line-number=
"line.lineNumber"
:path=
"path"
/>
<span
v-for=
"(content, i) in line.content"
:key=
"i"
:class=
"content.style"
class=
"ws-pre-wrap"
>
{{
content
.
text
}}
</span>
<span
v-for=
"(content, i) in line.content"
:key=
"i"
:class=
"content.style"
class=
"ws-pre-wrap"
>
{{
content
.
text
}}
</span
>
</div>
</
template
>
app/assets/javascripts/jobs/components/log/line_header.vue
View file @
1d8f18f9
...
...
@@ -49,9 +49,13 @@ export default {
>
<icon
:name=
"iconName"
class=
"arrow position-absolute"
/>
<line-number
:line-number=
"line.lineNumber"
:path=
"path"
/>
<span
v-for=
"(content, i) in line.content"
:key=
"i"
class=
"line-text w-100 ws-pre-wrap"
:class=
"content.style"
>
{{
content
.
text
}}
</span>
<span
v-for=
"(content, i) in line.content"
:key=
"i"
class=
"line-text w-100 ws-pre-wrap"
:class=
"content.style"
>
{{
content
.
text
}}
</span
>
<duration-badge
v-if=
"duration"
:duration=
"duration"
/>
</div>
</
template
>
app/assets/javascripts/jobs/store/mutations.js
View file @
1d8f18f9
...
...
@@ -19,7 +19,7 @@ export default {
state
.
isSidebarOpen
=
true
;
},
[
types
.
RECEIVE_TRACE_SUCCESS
](
state
,
log
)
{
[
types
.
RECEIVE_TRACE_SUCCESS
](
state
,
log
=
{}
)
{
if
(
log
.
state
)
{
state
.
traceState
=
log
.
state
;
}
...
...
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