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