From e621d98b71ffca9c2111da3b22772595fe6bb19f Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Thu, 24 Nov 2016 20:41:05 +0100 Subject: [PATCH] 10 second timeout on error-snackbar --- frontend/src/component/error/error-component.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/component/error/error-component.jsx b/frontend/src/component/error/error-component.jsx index 22e3d6faf2..8230da2f5c 100644 --- a/frontend/src/component/error/error-component.jsx +++ b/frontend/src/component/error/error-component.jsx @@ -12,13 +12,16 @@ class ErrorComponent extends React.Component { render () { const showError = this.props.errors.length > 0; const error = showError ? this.props.errors[0] : undefined; + const muteError = () => this.props.muteError(error); return ( this.props.muteError(error)} + onClick={muteError} + onTimeout={muteError} type="warning" /> );