summaryrefslogtreecommitdiffstats
path: root/webapp/components/form_error.jsx
diff options
context:
space:
mode:
authorAsaad Mahmood <asaadmahmood@users.noreply.github.com>2017-06-15 20:07:00 +0500
committerCorey Hulen <corey@hulen.com>2017-06-15 08:07:00 -0700
commit94fdba9a31c02b817afc5832a488194ecde23132 (patch)
treefb40b326bb9055a511a0737e48ebdd3898ab3f69 /webapp/components/form_error.jsx
parent528f2dc6c3b7c7a100d9022f4f50dfe337e92f0c (diff)
downloadchat-94fdba9a31c02b817afc5832a488194ecde23132.tar.gz
chat-94fdba9a31c02b817afc5832a488194ecde23132.tar.bz2
chat-94fdba9a31c02b817afc5832a488194ecde23132.zip
Ui improvements (#6651)
* PLT-6691 - Centering emoji in post view * PLT-6737 - FIxing on hover style for heade icons * PLT-6768 - Fixing error on profile picture * PLT-6792 - Fixing link preview image not resizing * PLT-6793 - User popover position on mobile
Diffstat (limited to 'webapp/components/form_error.jsx')
-rw-r--r--webapp/components/form_error.jsx10
1 files changed, 10 insertions, 0 deletions
diff --git a/webapp/components/form_error.jsx b/webapp/components/form_error.jsx
index b3ac3fef0..e8c3d1e98 100644
--- a/webapp/components/form_error.jsx
+++ b/webapp/components/form_error.jsx
@@ -43,6 +43,16 @@ export default class FormError extends React.Component {
return null;
}
+ if (this.props.type === 'modal') {
+ return (
+ <div className='form-group'>
+ <label className='col-sm-12 has-error'>
+ {message}
+ </label>
+ </div>
+ );
+ }
+
if (this.props.type === 'backstage') {
return (
<div className='pull-left has-error'>