From 125ae2d8f92ae2005fb8dc058310e22fd9db9e15 Mon Sep 17 00:00:00 2001 From: Frank Ahn Date: Sat, 18 Mar 2017 09:51:05 +0900 Subject: [PATCH] Fix #2134 --- web/src/js/components/EventLog.jsx | 2 +- web/src/js/components/EventLog/EventList.jsx | 7 ++++++- web/src/js/ducks/eventLog.js | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/web/src/js/components/EventLog.jsx b/web/src/js/components/EventLog.jsx index 1a4495115..3e0430db6 100644 --- a/web/src/js/components/EventLog.jsx +++ b/web/src/js/components/EventLog.jsx @@ -55,7 +55,7 @@ class EventLog extends Component {
Eventlog
- {['debug', 'info', 'web'].map(type => ( + {['debug', 'info', 'web', 'warn', 'error'].map(type => ( toggleFilter(type)}/> ))} diff --git a/web/src/js/components/EventLog/EventList.jsx b/web/src/js/components/EventLog/EventList.jsx index d0b036e7c..14f2b5b25 100644 --- a/web/src/js/components/EventLog/EventList.jsx +++ b/web/src/js/components/EventLog/EventList.jsx @@ -83,7 +83,12 @@ class EventLogList extends Component { } function LogIcon({ event }) { - const icon = { web: 'html5', debug: 'bug' }[event.level] || 'info' + const icon = { + web: 'html5', + debug: 'bug', + warn: 'exclamation-triangle', + error: 'ban' + }[event.level] || 'info' return } diff --git a/web/src/js/ducks/eventLog.js b/web/src/js/ducks/eventLog.js index 73eaf2e89..8f9ec34d7 100644 --- a/web/src/js/ducks/eventLog.js +++ b/web/src/js/ducks/eventLog.js @@ -8,7 +8,7 @@ export const TOGGLE_FILTER = 'EVENTS_TOGGLE_FILTER' const defaultState = { visible: false, - filters: { debug: false, info: true, web: true }, + filters: { debug: false, info: true, web: true, warn: true, error: true }, ...reduceStore(undefined, {}), }