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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
ab7bfff0
Commit
ab7bfff0
authored
Mar 07, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make changing the URL optional - future proof ourselves for the modal window
parent
107c39a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
app/assets/javascripts/boards/boards_bundle.js
app/assets/javascripts/boards/boards_bundle.js
+4
-3
app/assets/javascripts/boards/filtered_search_boards.js
app/assets/javascripts/boards/filtered_search_boards.js
+5
-2
No files found.
app/assets/javascripts/boards/boards_bundle.js
View file @
ab7bfff0
/* eslint-disable one-var, quote-props, comma-dangle, space-before-function-paren */
/* eslint-disable one-var, quote-props, comma-dangle, space-before-function-paren
, no-new
*/
/* global Vue */
/* global BoardService */
import
FilteredSearchBoards
from
'
./filtered_search_boards
'
;
window
.
Vue
=
require
(
'
vue
'
);
window
.
Vue
.
use
(
require
(
'
vue-resource
'
));
import
FilteredSearchBoards
from
'
./filtered_search_boards
'
;
require
(
'
./models/issue
'
);
require
(
'
./models/label
'
);
require
(
'
./models/list
'
);
...
...
@@ -61,7 +62,7 @@ $(() => {
created
()
{
gl
.
boardService
=
new
BoardService
(
this
.
endpoint
,
this
.
bulkUpdatePath
,
this
.
boardId
);
new
FilteredSearchBoards
(
Store
.
filter
);
new
FilteredSearchBoards
(
Store
.
filter
,
true
);
},
mounted
()
{
Store
.
disabled
=
this
.
disabled
;
...
...
app/assets/javascripts/boards/filtered_search_boards.js
View file @
ab7bfff0
export
default
class
FilteredSearchBoards
extends
gl
.
FilteredSearchManager
{
constructor
(
store
)
{
constructor
(
store
,
updateUrl
=
false
)
{
super
(
'
boards
'
);
this
.
store
=
store
;
this
.
updateUrl
=
updateUrl
;
this
.
isHandledAsync
=
true
;
}
updateObject
(
path
)
{
this
.
store
.
path
=
path
.
substr
(
1
);
gl
.
issueBoards
.
BoardsStore
.
updateFiltersUrl
();
if
(
this
.
updateUrl
)
{
gl
.
issueBoards
.
BoardsStore
.
updateFiltersUrl
();
}
}
}
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