diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2018-11-21 17:23:26 +0800 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2018-12-06 09:02:33 +0800 |
commit | cb5214f4807676c1a4d1e207814b0b658b0b6979 (patch) | |
tree | 05cf8c02debee96d2f1fac7f3eeb73d4ee829ba2 /app/assets/javascripts/boards/stores/boards_store.js | |
parent | 0ec5edd5bed6918e27330da3140cf87a008c06f3 (diff) | |
download | gitlab-ce-cb5214f4807676c1a4d1e207814b0b658b0b6979.tar.gz |
Allow creating label lists with the same label name
Diffstat (limited to 'app/assets/javascripts/boards/stores/boards_store.js')
-rw-r--r-- | app/assets/javascripts/boards/stores/boards_store.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/assets/javascripts/boards/stores/boards_store.js b/app/assets/javascripts/boards/stores/boards_store.js index cf88a973d33..01fc1cb5af3 100644 --- a/app/assets/javascripts/boards/stores/boards_store.js +++ b/app/assets/javascripts/boards/stores/boards_store.js @@ -166,6 +166,11 @@ const boardsStore = { }); return filteredList[0]; }, + findListByLabelId(id) { + return this.state.lists.find(list => { + return list.type === 'label' && list.label.id === id; + }); + }, updateFiltersUrl() { window.history.pushState(null, null, `?${this.filter.path}`); }, |