feat: add server version to ManagementApp
This commit is contained in:
parent
eed864aca1
commit
0ab294b50e
1 changed files with 4 additions and 1 deletions
|
@ -16,8 +16,11 @@ import Bootstrap from './subscribe/Bootstrap';
|
||||||
import Error from './subscribe/Error';
|
import Error from './subscribe/Error';
|
||||||
import ChangePassword from './subscribe/ChangePassword';
|
import ChangePassword from './subscribe/ChangePassword';
|
||||||
import ConfigServer from './ConfigServer';
|
import ConfigServer from './ConfigServer';
|
||||||
|
import useServerVersion from '../../hooks/useServerVersion'
|
||||||
|
|
||||||
function Version() {
|
function Version() {
|
||||||
|
const version = useServerVersion();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ExternalLink
|
<ExternalLink
|
||||||
style={{
|
style={{
|
||||||
|
@ -32,7 +35,7 @@ function Version() {
|
||||||
}}
|
}}
|
||||||
href={'https://actualbudget.com/blog/' + window.Actual.ACTUAL_VERSION}
|
href={'https://actualbudget.com/blog/' + window.Actual.ACTUAL_VERSION}
|
||||||
>
|
>
|
||||||
{window.Actual.ACTUAL_VERSION}
|
{`App: v${window.Actual.ACTUAL_VERSION} | Server: ${version}`}
|
||||||
</ExternalLink>
|
</ExternalLink>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue