aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/components/Shared/ErrorSegment.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/web/src/components/Shared/ErrorSegment.js b/src/web/src/components/Shared/ErrorSegment.js
index 7a6caa9d..43c6fabb 100644
--- a/src/web/src/components/Shared/ErrorSegment.js
+++ b/src/web/src/components/Shared/ErrorSegment.js
@@ -2,11 +2,11 @@ import React from 'react';
import { Segment, Header, Icon } from 'semantic-ui-react';
-const ErrorSegment = ({ icon, caption }) => (
+const ErrorSegment = ({ icon = 'x', caption, suppressPrefix = false }) => (
<Segment className='error-segment' placeholder basic>
<Header icon>
- <Icon name='x' color='red'/>
- Error: {caption}
+ <Icon name={icon} color='red'/>
+ {!suppressPrefix && "Error: "}{caption}
</Header>
</Segment>
);