diff options
author | Phil Hughes <me@iamphill.com> | 2017-03-07 14:43:17 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-03-08 08:48:59 +0000 |
commit | ab7bfff08b2ba8d15f1ab5f8fa4449dc53f51bab (patch) | |
tree | d4dd431fd2ed103bc38075f4bf8b64af36d4d155 /app/assets/javascripts/boards/filtered_search_boards.js | |
parent | 107c39a66e621e35f808b3a257789d78bf153894 (diff) | |
download | gitlab-ce-ab7bfff08b2ba8d15f1ab5f8fa4449dc53f51bab.tar.gz |
Make changing the URL optional - future proof ourselves for the modal window
Diffstat (limited to 'app/assets/javascripts/boards/filtered_search_boards.js')
-rw-r--r-- | app/assets/javascripts/boards/filtered_search_boards.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/assets/javascripts/boards/filtered_search_boards.js b/app/assets/javascripts/boards/filtered_search_boards.js index 43c6d9d7237..d00cb123909 100644 --- a/app/assets/javascripts/boards/filtered_search_boards.js +++ b/app/assets/javascripts/boards/filtered_search_boards.js @@ -1,14 +1,17 @@ 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(); + } } } |