mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +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 -->
|
||||
|
||||
### 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/)
|
||||
|
||||
### 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 { WithTranslation, withTranslation } from "react-i18next";
|
||||
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";
|
||||
|
||||
type Props = WithTranslation & {
|
||||
@@ -35,7 +35,6 @@ type Props = WithTranslation & {
|
||||
|
||||
type State = {
|
||||
loading: boolean;
|
||||
error?: Error;
|
||||
releaseInfo?: ReleaseInfo;
|
||||
};
|
||||
|
||||
@@ -73,22 +72,20 @@ class AdminDetails extends React.Component<Props, State> {
|
||||
const { releaseInfoLink } = this.props;
|
||||
|
||||
if (releaseInfoLink) {
|
||||
this.setState({ loading: true });
|
||||
apiClient
|
||||
.get(releaseInfoLink)
|
||||
.then(r => r.json())
|
||||
.then(releaseInfo => this.setState({ releaseInfo }))
|
||||
.then(() => this.setState({ loading: false }))
|
||||
.catch(error => this.setState({ error }));
|
||||
// ignore errors for this action
|
||||
.catch(() => this.setState({ loading: false }));
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
const { version, t } = this.props;
|
||||
const { loading, error, releaseInfo } = this.state;
|
||||
|
||||
if (error) {
|
||||
return <ErrorNotification error={error} />;
|
||||
}
|
||||
const { loading, releaseInfo } = this.state;
|
||||
|
||||
if (loading) {
|
||||
return <Loading />;
|
||||
@@ -124,7 +121,6 @@ class AdminDetails extends React.Component<Props, State> {
|
||||
<hr />
|
||||
</>
|
||||
)}
|
||||
|
||||
<BoxShadowBox className="box">
|
||||
<article className="media">
|
||||
<ImageWrapper className="media-left">
|
||||
|
||||
@@ -77,13 +77,13 @@ public class ReleaseVersionChecker {
|
||||
cache.put("latest", latestRelease.get());
|
||||
return latestRelease;
|
||||
}
|
||||
LOG.info("No newer version found for SCM-Manager");
|
||||
return Optional.empty();
|
||||
} 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");
|
||||
return Optional.empty();
|
||||
}
|
||||
LOG.info("No newer version found for SCM-Manager");
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
private boolean isNewerVersion(ReleaseInfo releaseInfo) {
|
||||
|
||||
Reference in New Issue
Block a user