1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-20 21:54:58 -04:00

Allow -suffix in PackageVersion and added that and PackageAuthor to the About page.

This commit is contained in:
Taloth Saldono
2019-02-04 20:44:47 +01:00
parent 86c74b3ee0
commit 070cbeebbe
3 changed files with 28 additions and 22 deletions
+12
View File
@@ -15,6 +15,8 @@ class About extends Component {
render() {
const {
version,
packageVersion,
packageAuthor,
isMonoRuntime,
runtimeVersion,
appData,
@@ -33,6 +35,14 @@ class About extends Component {
data={version}
/>
{
packageVersion &&
<DescriptionListItem
title="Package Version"
data={(packageAuthor ? `${packageVersion} by ${packageAuthor}` : packageVersion)}
/>
}
{
isMonoRuntime &&
<DescriptionListItem
@@ -75,6 +85,8 @@ class About extends Component {
About.propTypes = {
version: PropTypes.string.isRequired,
packageVersion: PropTypes.string,
packageAuthor: PropTypes.string,
isMonoRuntime: PropTypes.bool.isRequired,
runtimeVersion: PropTypes.string.isRequired,
appData: PropTypes.string.isRequired,