Commit 371a9973 authored by lauraMon's avatar lauraMon Committed by Tristan Read

Adds function to update status

parent 9146b9d8
......@@ -149,6 +149,7 @@ export default {
'loadRecentSearches',
'setIndexPath',
'fetchPaginatedResults',
'updateStatus',
]),
setSearchText(text) {
this.errorSearchQuery = text;
......@@ -171,6 +172,9 @@ export default {
isCurrentSortField(field) {
return field === this.sortField;
},
updateIssueStatus(status) {
this.updateStatus({ endpoint: this.issueUpdatePath, redirectUrl: this.listPath, status });
},
},
};
</script>
......
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