Hide build number if it is the same as the version number in the about dialog (#3585)

This commit is contained in:
David Lu
2016-07-13 19:28:59 -04:00
committed by Corey Hulen
parent 8346bfec37
commit e1a14ac4ae

View File

@@ -104,6 +104,11 @@ export default class AboutBuildModal extends React.Component {
}
}
let version = '\u00a0' + config.Version;
if (config.BuildNumber !== config.Version) {
version += '\u00a0 (' + config.BuildNumber + ')';
}
return (
<Modal
dialogClassName='about-modal'
@@ -135,7 +140,7 @@ export default class AboutBuildModal extends React.Component {
id='about.version'
defaultMessage='Version:'
/>
{'\u00a0' + config.Version + '\u00a0 (' + config.BuildNumber + ')'}
{version}
</div>
<div>
<FormattedMessage