Merge branch 'clear-page-param-after-filter-in-add-issues-modal' into 'master'

Reset issue boards add issues modal page when filtering

Closes #29616

See merge request !10039
This commit is contained in:
Alfredo Sumaran 2017-03-21 00:10:36 +00:00
commit 7601d8b0b7

View file

@ -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,