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
9c1e042d
Commit
9c1e042d
authored
May 03, 2018
by
Kushal Pandya
Committed by
Mario de la Ossa
May 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Epic sidebar auto-expand when participants & label icon is clicked
parent
7a262134
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
1 deletion
+14
-1
app/assets/javascripts/sidebar/components/subscriptions/subscriptions.vue
...cripts/sidebar/components/subscriptions/subscriptions.vue
+2
-1
ee/app/assets/javascripts/epics/sidebar/components/sidebar_app.vue
...sets/javascripts/epics/sidebar/components/sidebar_app.vue
+2
-0
ee/app/assets/javascripts/epics/sidebar/components/sidebar_participants.vue
...scripts/epics/sidebar/components/sidebar_participants.vue
+6
-0
ee/app/assets/javascripts/epics/sidebar/components/sidebar_subscriptions.vue
...cripts/epics/sidebar/components/sidebar_subscriptions.vue
+4
-0
No files found.
app/assets/javascripts/sidebar/components/subscriptions/subscriptions.vue
View file @
9c1e042d
...
...
@@ -37,7 +37,7 @@
},
computed
:
{
showLoadingState
()
{
return
this
.
loading
||
this
.
subscribed
===
null
;
return
this
.
subscribed
===
null
;
},
notificationIcon
()
{
return
this
.
subscribed
?
ICON_ON
:
ICON_OFF
;
...
...
@@ -51,6 +51,7 @@
* We need to emit this event on both component & eventHub
* for 2 dependencies;
*
* Make Epic sidebar auto-expand when participants & label icon is clicked
* 1. eventHub: This component is used in Issue Boards sidebar
* where component template is part of HAML
* and event listeners are tied to app's eventHub.
...
...
ee/app/assets/javascripts/epics/sidebar/components/sidebar_app.vue
View file @
9c1e042d
...
...
@@ -256,11 +256,13 @@
</sidebar-labels-select>
<sidebar-participants
:participants=
"initialParticipants"
@
toggleCollapse=
"toggleSidebar"
/>
<sidebar-subscriptions
:loading=
"savingSubscription"
:subscribed=
"store.subscription"
@
toggleSubscription=
"handleToggleSubscription"
@
toggleCollapse=
"toggleSidebar"
/>
</div>
</aside>
...
...
ee/app/assets/javascripts/epics/sidebar/components/sidebar_participants.vue
View file @
9c1e042d
...
...
@@ -11,6 +11,11 @@
required
:
true
,
},
},
methods
:
{
onToggleSidebar
()
{
this
.
$emit
(
'
toggleCollapse
'
);
},
},
};
</
script
>
...
...
@@ -18,6 +23,7 @@
<div
class=
"block participants"
>
<participants
:participants=
"participants"
@
toggleSidebar=
"onToggleSidebar"
/>
</div>
</
template
>
ee/app/assets/javascripts/epics/sidebar/components/sidebar_subscriptions.vue
View file @
9c1e042d
...
...
@@ -19,6 +19,9 @@
onToggleSubscription
()
{
this
.
$emit
(
'
toggleSubscription
'
);
},
onToggleSidebar
()
{
this
.
$emit
(
'
toggleCollapse
'
);
},
},
};
</
script
>
...
...
@@ -29,6 +32,7 @@
:loading=
"loading"
:subscribed=
"subscribed"
@
toggleSubscription=
"onToggleSubscription"
@
toggleSidebar=
"onToggleSidebar"
/>
</div>
</
template
>
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