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
800eae59
Commit
800eae59
authored
Mar 14, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added eventhub to emit update tokens event
parent
2ed82937
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
app/assets/javascripts/boards/boards_bundle.js
app/assets/javascripts/boards/boards_bundle.js
+3
-2
app/assets/javascripts/boards/components/issue_card_inner.js
app/assets/javascripts/boards/components/issue_card_inner.js
+3
-1
app/assets/javascripts/boards/eventhub.js
app/assets/javascripts/boards/eventhub.js
+3
-0
No files found.
app/assets/javascripts/boards/boards_bundle.js
View file @
800eae59
...
...
@@ -3,6 +3,7 @@
/* global BoardService */
import
FilteredSearchBoards
from
'
./filtered_search_boards
'
;
import
eventHub
from
'
./eventhub
'
;
window
.
Vue
=
require
(
'
vue
'
);
window
.
Vue
.
use
(
require
(
'
vue-resource
'
));
...
...
@@ -78,10 +79,10 @@ $(() => {
this
.
filterManager
=
new
FilteredSearchBoards
(
Store
.
filter
,
true
,
[(
this
.
milestoneTitle
?
'
milestone
'
:
null
)]);
// Listen for updateTokens event
this
.
$on
(
'
updateTokens
'
,
this
.
updateTokens
);
eventHub
.
$on
(
'
updateTokens
'
,
this
.
updateTokens
);
},
beforeDestroy
()
{
this
.
$off
(
'
updateTokens
'
,
this
.
updateTokens
);
eventHub
.
$off
(
'
updateTokens
'
,
this
.
updateTokens
);
},
mounted
()
{
Store
.
disabled
=
this
.
disabled
;
...
...
app/assets/javascripts/boards/components/issue_card_inner.js
View file @
800eae59
/* global Vue */
import
eventHub
from
'
../eventhub
'
;
(()
=>
{
const
Store
=
gl
.
issueBoards
.
BoardsStore
;
...
...
@@ -54,7 +56,7 @@
Store
.
updateFiltersUrl
();
gl
.
IssueBoardsApp
.
$emit
(
'
updateTokens
'
);
eventHub
.
$emit
(
'
updateTokens
'
);
},
labelStyle
(
label
)
{
return
{
...
...
app/assets/javascripts/boards/eventhub.js
0 → 100644
View file @
800eae59
import
Vue
from
'
vue
'
;
export
default
new
Vue
();
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