#149: show bsod for 500 errors

This commit is contained in:
SleepWalker
2016-07-29 22:29:27 +03:00
parent 4394346a2a
commit ae11dbdc97
6 changed files with 50 additions and 13 deletions

View File

@@ -6,7 +6,6 @@ import classNames from 'classnames';
import Userbar from 'components/userbar/Userbar';
import PopupStack from 'components/ui/popup/PopupStack';
import BSoD from 'components/ui/bsod/BSoD';
import styles from './root.scss';
@@ -23,10 +22,6 @@ if (process.env.NODE_ENV === 'production') {
function RootPage(props) {
const isRegisterPage = props.location.pathname === '/register';
if (props.bsod) {
return <BSoD />;
}
return (
<div className={styles.root}>
<div id="view-port" className={classNames(styles.viewPort, {
@@ -61,7 +56,6 @@ RootPage.propTypes = {
pathname: PropTypes.string
}).isRequired,
children: PropTypes.element,
bsod: PropTypes.bool.isRequired,
logout: PropTypes.func.isRequired,
isPopupActive: PropTypes.bool.isRequired
};
@@ -70,7 +64,6 @@ import { connect } from 'react-redux';
import { logout } from 'components/user/actions';
export default connect((state) => ({
bsod: state.bsod,
user: state.user,
isPopupActive: state.popup.popups.length > 0
}), {