mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 08:55:44 +01:00
update documentation
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 203 KiB After Width: | Height: | Size: 110 KiB |
@@ -11,6 +11,6 @@ Im Bereich Administration kann die SCM-Manager Instanz administriert werden. Von
|
|||||||
<!--- AppendLinkContentEnd -->
|
<!--- AppendLinkContentEnd -->
|
||||||
|
|
||||||
### Information
|
### Information
|
||||||
Auf der Informationsseite in der Administration findet man die aktuelle Version der SCM-Manager Instanz und hilfreiche Links zur Kontaktaufnahme mit dem SCM-Manager Support-Team.
|
Auf der Informationsseite in der Administration findet man die aktuelle Version der SCM-Manager Instanz und hilfreiche Links zur Kontaktaufnahme mit dem SCM-Manager Support-Team. Falls eine neuere Version des SCM-Managers verfügbar ist, wird der Link zum Download-Bereich der offiziellen Webseite angezeigt.
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 194 KiB After Width: | Height: | Size: 116 KiB |
@@ -9,6 +9,6 @@ The SCM-Manager instance can be administered in the Administration area. From he
|
|||||||
* [Settings](settings/)
|
* [Settings](settings/)
|
||||||
|
|
||||||
### Information
|
### Information
|
||||||
On the information page in the administration area you can find the version of your SCM-Manager instance and helpful links to get in touch with the SCM-Manager support team.
|
On the information page in the administration area you can find the version of your SCM-Manager instance and helpful links to get in touch with the SCM-Manager support team. If there is a newer version for SCM-Manager, it will be shown with the link to the download section on the official SCM-Manager homepage.
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
@@ -25,7 +25,7 @@ import React from "react";
|
|||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { WithTranslation, withTranslation } from "react-i18next";
|
import { WithTranslation, withTranslation } from "react-i18next";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
import { apiClient, ErrorNotification, Image, Loading, Subtitle, Title } from "@scm-manager/ui-components";
|
import { apiClient, Image, Loading, Subtitle, Title } from "@scm-manager/ui-components";
|
||||||
import { getAppVersion, getReleaseInfoLink } from "../../modules/indexResource";
|
import { getAppVersion, getReleaseInfoLink } from "../../modules/indexResource";
|
||||||
|
|
||||||
type Props = WithTranslation & {
|
type Props = WithTranslation & {
|
||||||
@@ -35,7 +35,6 @@ type Props = WithTranslation & {
|
|||||||
|
|
||||||
type State = {
|
type State = {
|
||||||
loading: boolean;
|
loading: boolean;
|
||||||
error?: Error;
|
|
||||||
releaseInfo?: ReleaseInfo;
|
releaseInfo?: ReleaseInfo;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -73,22 +72,20 @@ class AdminDetails extends React.Component<Props, State> {
|
|||||||
const { releaseInfoLink } = this.props;
|
const { releaseInfoLink } = this.props;
|
||||||
|
|
||||||
if (releaseInfoLink) {
|
if (releaseInfoLink) {
|
||||||
|
this.setState({ loading: true });
|
||||||
apiClient
|
apiClient
|
||||||
.get(releaseInfoLink)
|
.get(releaseInfoLink)
|
||||||
.then(r => r.json())
|
.then(r => r.json())
|
||||||
.then(releaseInfo => this.setState({ releaseInfo }))
|
.then(releaseInfo => this.setState({ releaseInfo }))
|
||||||
.then(() => this.setState({ loading: false }))
|
.then(() => this.setState({ loading: false }))
|
||||||
.catch(error => this.setState({ error }));
|
// ignore errors for this action
|
||||||
|
.catch(() => this.setState({ loading: false }));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { version, t } = this.props;
|
const { version, t } = this.props;
|
||||||
const { loading, error, releaseInfo } = this.state;
|
const { loading, releaseInfo } = this.state;
|
||||||
|
|
||||||
if (error) {
|
|
||||||
return <ErrorNotification error={error} />;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (loading) {
|
if (loading) {
|
||||||
return <Loading />;
|
return <Loading />;
|
||||||
@@ -124,7 +121,6 @@ class AdminDetails extends React.Component<Props, State> {
|
|||||||
<hr />
|
<hr />
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<BoxShadowBox className="box">
|
<BoxShadowBox className="box">
|
||||||
<article className="media">
|
<article className="media">
|
||||||
<ImageWrapper className="media-left">
|
<ImageWrapper className="media-left">
|
||||||
|
|||||||
@@ -77,13 +77,13 @@ public class ReleaseVersionChecker {
|
|||||||
cache.put("latest", latestRelease.get());
|
cache.put("latest", latestRelease.get());
|
||||||
return latestRelease;
|
return latestRelease;
|
||||||
}
|
}
|
||||||
|
LOG.info("No newer version found for SCM-Manager");
|
||||||
|
return Optional.empty();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
// This is an silent action. We don't want the user to get any kind of error for this.
|
// This is a silent action. We don't want the user to get any kind of error for this.
|
||||||
LOG.info("No newer version found for SCM-Manager");
|
LOG.info("No newer version found for SCM-Manager");
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
LOG.info("No newer version found for SCM-Manager");
|
|
||||||
return Optional.empty();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isNewerVersion(ReleaseInfo releaseInfo) {
|
private boolean isNewerVersion(ReleaseInfo releaseInfo) {
|
||||||
|
|||||||
Reference in New Issue
Block a user