Commit 03f6f51d authored by Phil Hughes's avatar Phil Hughes

Reset issue boards add issues modal page when filtering

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
parent 4bf4612c
...@@ -64,6 +64,7 @@ require('./empty_state'); ...@@ -64,6 +64,7 @@ require('./empty_state');
}, },
filter: { filter: {
handler() { handler() {
this.page = 1;
this.loadIssues(true); this.loadIssues(true);
}, },
deep: true, deep: true,
...@@ -115,6 +116,9 @@ require('./empty_state'); ...@@ -115,6 +116,9 @@ require('./empty_state');
return this.activeTab === 'selected' && this.selectedIssues.length === 0; return this.activeTab === 'selected' && this.selectedIssues.length === 0;
}, },
}, },
created() {
this.page = 1;
},
components: { components: {
'modal-header': gl.issueBoards.ModalHeader, 'modal-header': gl.issueBoards.ModalHeader,
'modal-list': gl.issueBoards.ModalList, 'modal-list': gl.issueBoards.ModalList,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment