diff options
author | Phil Hughes <me@iamphill.com> | 2017-03-17 10:05:27 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-03-17 10:05:27 +0000 |
commit | 03f6f51dcf5b0401257cddf8cbfd83aa1426f4bc (patch) | |
tree | d39c756f0debfc63c9a2854d76eb1b0834d2bb1c /app/assets/javascripts | |
parent | 4bf4612cfbe73845391375bf721592426d7b4181 (diff) | |
download | gitlab-ce-03f6f51dcf5b0401257cddf8cbfd83aa1426f4bc.tar.gz |
Reset issue boards add issues modal page when filteringclear-page-param-after-filter-in-add-issues-modal
The page param is reset when filtering or when opening, previously it was possible to get the page param stuck on a high number making it impossible to either filter or to close & open the modal and get the issues you want to see.
Closes #29616
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/boards/components/modal/index.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/boards/components/modal/index.js b/app/assets/javascripts/boards/components/modal/index.js index 1b66c8b922d..4240c97617d 100644 --- a/app/assets/javascripts/boards/components/modal/index.js +++ b/app/assets/javascripts/boards/components/modal/index.js @@ -64,6 +64,7 @@ require('./empty_state'); }, filter: { handler() { + this.page = 1; this.loadIssues(true); }, deep: true, @@ -115,6 +116,9 @@ require('./empty_state'); return this.activeTab === 'selected' && this.selectedIssues.length === 0; }, }, + created() { + this.page = 1; + }, components: { 'modal-header': gl.issueBoards.ModalHeader, 'modal-list': gl.issueBoards.ModalList, |