BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
c7cecae6
Commit
c7cecae6
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
7eabb7a9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
boards_bundle.js
app/assets/javascripts/boards/boards_bundle.js
+3
-2
issue_card_inner.js
app/assets/javascripts/boards/components/issue_card_inner.js
+3
-1
eventhub.js
app/assets/javascripts/boards/eventhub.js
+3
-0
No files found.
app/assets/javascripts/boards/boards_bundle.js
View file @
c7cecae6
...
...
@@ -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'
));
...
...
@@ -65,10 +66,10 @@ $(() => {
this
.
filterManager
=
new
FilteredSearchBoards
(
Store
.
filter
,
true
);
// 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 @
c7cecae6
/* 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 @
c7cecae6
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