about summary refs log tree commit diff
path: root/app/assets/javascripts/components/reducers/reports.jsx
diff options
context:
space:
mode:
authorEugen <eugen@zeonfederated.com>2017-04-13 19:36:41 +0200
committerGitHub <noreply@github.com>2017-04-13 19:36:41 +0200
commitac54da939413836733e30627def9ca645d3735d4 (patch)
treec6f13821b0fe13fd9cb44f8dc30f329b9df286c4 /app/assets/javascripts/components/reducers/reports.jsx
parent043862f4118a9ee5e6708ff9c144fa9e668ee06d (diff)
Fix #1220, fix #1671 - Hook up comment box to the Redux comment value (#1699)
Fix username styling regression introduced in #1063
Fix report screen background regression introduced in #1415
Diffstat (limited to 'app/assets/javascripts/components/reducers/reports.jsx')
-rw-r--r--app/assets/javascripts/components/reducers/reports.jsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/reducers/reports.jsx b/app/assets/javascripts/components/reducers/reports.jsx
index e1cce1c5f..eab004377 100644
--- a/app/assets/javascripts/components/reducers/reports.jsx
+++ b/app/assets/javascripts/components/reducers/reports.jsx
@@ -4,7 +4,8 @@ import {
   REPORT_SUBMIT_SUCCESS,
   REPORT_SUBMIT_FAIL,
   REPORT_CANCEL,
-  REPORT_STATUS_TOGGLE
+  REPORT_STATUS_TOGGLE,
+  REPORT_COMMENT_CHANGE
 } from '../actions/reports';
 import Immutable from 'immutable';
 
@@ -39,6 +40,8 @@ export default function reports(state = initialState, action) {
 
       return set.remove(action.statusId);
     });
+  case REPORT_COMMENT_CHANGE:
+    return state.setIn(['new', 'comment'], action.comment);
   case REPORT_SUBMIT_REQUEST:
     return state.setIn(['new', 'isSubmitting'], true);
   case REPORT_SUBMIT_FAIL: