diff options
author | David Yip <yipdw@member.fsf.org> | 2018-03-16 17:13:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-16 17:13:09 -0500 |
commit | 50f56ba37592b42d5af401f23366657b2390bfaa (patch) | |
tree | 8656342e904019ced6bc25bfdb0590981b338da8 /app/javascript/flavours/glitch/actions/reports.js | |
parent | 8383f777fb3f61a3273bb24a589fe8d8638e664c (diff) | |
parent | 9c40a5f3c809b6ec47f4f4f1f7f028cfcefcb904 (diff) |
Merge pull request #385 from ThibG/glitch-soc/features/port-reports-ui-changes
Port reports ui changes to glitch-soc flavour
Diffstat (limited to 'app/javascript/flavours/glitch/actions/reports.js')
-rw-r--r-- | app/javascript/flavours/glitch/actions/reports.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/actions/reports.js b/app/javascript/flavours/glitch/actions/reports.js index ad4fd18a9..80c3b3280 100644 --- a/app/javascript/flavours/glitch/actions/reports.js +++ b/app/javascript/flavours/glitch/actions/reports.js @@ -10,6 +10,7 @@ export const REPORT_SUBMIT_FAIL = 'REPORT_SUBMIT_FAIL'; export const REPORT_STATUS_TOGGLE = 'REPORT_STATUS_TOGGLE'; export const REPORT_COMMENT_CHANGE = 'REPORT_COMMENT_CHANGE'; +export const REPORT_FORWARD_CHANGE = 'REPORT_FORWARD_CHANGE'; export function initReport(account, status) { return dispatch => { @@ -45,6 +46,7 @@ export function submitReport() { account_id: getState().getIn(['reports', 'new', 'account_id']), status_ids: getState().getIn(['reports', 'new', 'status_ids']), comment: getState().getIn(['reports', 'new', 'comment']), + forward: getState().getIn(['reports', 'new', 'forward']), }).then(response => { dispatch(closeModal()); dispatch(submitReportSuccess(response.data)); @@ -78,3 +80,10 @@ export function changeReportComment(comment) { comment, }; }; + +export function changeReportForward(forward) { + return { + type: REPORT_FORWARD_CHANGE, + forward, + }; +}; |