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
b7115810
Commit
b7115810
authored
Apr 26, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'multiple-assignees-fe-sidebar' into multiple-assignees-issue-board-sidebar
parents
119c1c91
22af8970
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
7 deletions
+13
-7
app/assets/javascripts/sidebar/components/assignees/assignees.js
...ets/javascripts/sidebar/components/assignees/assignees.js
+4
-2
app/assets/javascripts/sidebar/components/time_tracking/collapsed_state.js
...ripts/sidebar/components/time_tracking/collapsed_state.js
+7
-1
app/assets/javascripts/sidebar/sidebar_mediator.js
app/assets/javascripts/sidebar/sidebar_mediator.js
+1
-3
app/assets/javascripts/weight_select.js
app/assets/javascripts/weight_select.js
+1
-1
No files found.
app/assets/javascripts/sidebar/components/assignees/assignees.js
View file @
b7115810
...
@@ -89,8 +89,10 @@ export default {
...
@@ -89,8 +89,10 @@ export default {
return
`@
${
user
.
username
}
`
;
return
`@
${
user
.
username
}
`
;
},
},
shouldRenderCollapsedAssignee
(
index
)
{
shouldRenderCollapsedAssignee
(
index
)
{
return
index
===
0
||
this
.
users
.
length
<=
2
&&
index
<=
2
const
firstTwo
=
this
.
users
.
length
<=
2
&&
index
<=
2
;
}
return
index
===
0
||
firstTwo
;
},
},
},
template
:
`
template
:
`
<div>
<div>
...
...
app/assets/javascripts/sidebar/components/time_tracking/collapsed_state.js
View file @
b7115810
...
@@ -49,6 +49,8 @@ export default {
...
@@ -49,6 +49,8 @@ export default {
}
else
if
(
this
.
showNoTimeTrackingState
)
{
}
else
if
(
this
.
showNoTimeTrackingState
)
{
return
'
no-tracking
'
;
return
'
no-tracking
'
;
}
}
return
''
;
},
},
spanClass
()
{
spanClass
()
{
if
(
this
.
showComparisonState
)
{
if
(
this
.
showComparisonState
)
{
...
@@ -58,6 +60,8 @@ export default {
...
@@ -58,6 +60,8 @@ export default {
}
else
if
(
this
.
showNoTimeTrackingState
)
{
}
else
if
(
this
.
showNoTimeTrackingState
)
{
return
'
no-value
'
;
return
'
no-value
'
;
}
}
return
''
;
},
},
text
()
{
text
()
{
if
(
this
.
showComparisonState
)
{
if
(
this
.
showComparisonState
)
{
...
@@ -69,7 +73,9 @@ export default {
...
@@ -69,7 +73,9 @@ export default {
}
else
if
(
this
.
showNoTimeTrackingState
)
{
}
else
if
(
this
.
showNoTimeTrackingState
)
{
return
'
None
'
;
return
'
None
'
;
}
}
}
return
''
;
},
},
},
methods
:
{
methods
:
{
abbreviateTime
(
timeStr
)
{
abbreviateTime
(
timeStr
)
{
...
...
app/assets/javascripts/sidebar/sidebar_mediator.js
View file @
b7115810
...
@@ -44,8 +44,6 @@ export default class SidebarMediator {
...
@@ -44,8 +44,6 @@ export default class SidebarMediator {
this
.
store
.
processUserData
(
data
);
this
.
store
.
processUserData
(
data
);
this
.
store
.
processTimeTrackingData
(
data
);
this
.
store
.
processTimeTrackingData
(
data
);
})
})
.
catch
(()
=>
{
.
catch
(()
=>
new
Flash
(
'
Error occured when fetching sidebar data
'
));
return
new
Flash
(
'
Error occured when fetching sidebar data
'
);
});
}
}
}
}
app/assets/javascripts/weight_select.js
View file @
b7115810
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
}
}
},
},
clicked
:
function
(
options
)
{
clicked
:
function
(
options
)
{
const
{
$el
,
e
}
=
options
;
const
e
=
options
.
e
;
let
selected
=
options
.
selectedObj
;
let
selected
=
options
.
selectedObj
;
if
(
$
(
dropdown
).
is
(
"
.js-filter-submit
"
))
{
if
(
$
(
dropdown
).
is
(
"
.js-filter-submit
"
))
{
...
...
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