summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-03-17 10:05:27 +0000
committerPhil Hughes <me@iamphill.com>2017-03-17 10:05:27 +0000
commit03f6f51dcf5b0401257cddf8cbfd83aa1426f4bc (patch)
treed39c756f0debfc63c9a2854d76eb1b0834d2bb1c
parent4bf4612cfbe73845391375bf721592426d7b4181 (diff)
downloadgitlab-ce-clear-page-param-after-filter-in-add-issues-modal.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
-rw-r--r--app/assets/javascripts/boards/components/modal/index.js4
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,