mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 17:31:36 -06:00
SDA-4036 Remove 1.5 related code for version discovery (#1662)
This commit is contained in:
parent
33664a8410
commit
20f0d92152
@ -182,15 +182,10 @@ class VersionHandler {
|
||||
|
||||
/* Get SFE version */
|
||||
let urlSfeVersion: string;
|
||||
if (mainUrl?.includes('bff')) {
|
||||
urlSfeVersion = mainUrl?.includes('/daily/')
|
||||
? `${protocol}//${hostname}/bff-daily/daily/version.json`
|
||||
: `${protocol}//${hostname}/client-bff/version.json`;
|
||||
this.versionInfo.sfeClientType = '2.0';
|
||||
} else {
|
||||
urlSfeVersion = `${protocol}//${hostname}/client/version.json`;
|
||||
this.versionInfo.sfeClientType = '1.5';
|
||||
}
|
||||
urlSfeVersion = mainUrl?.includes('/daily/')
|
||||
? `${protocol}//${hostname}/bff-daily/daily/version.json`
|
||||
: `${protocol}//${hostname}/client-bff/version.json`;
|
||||
this.versionInfo.sfeClientType = '2.0';
|
||||
logger.info(
|
||||
`version-handler: Trying to get SFE version info for the URL: ${urlSfeVersion}`,
|
||||
);
|
||||
|
@ -35,6 +35,7 @@ interface IState {
|
||||
}
|
||||
|
||||
const ABOUT_SYMPHONY_NAMESPACE = 'AboutSymphony';
|
||||
const SFE_CLIENT_TYPE_NAME = 'SFE-Lite';
|
||||
|
||||
/**
|
||||
* Window that display app version and copyright info
|
||||
@ -85,7 +86,6 @@ export default class AboutApp extends React.Component<{}, IState> {
|
||||
buildNumber,
|
||||
hostname,
|
||||
sfeVersion,
|
||||
sfeClientType,
|
||||
sdaVersion,
|
||||
sdaBuildNumber,
|
||||
client,
|
||||
@ -98,7 +98,6 @@ export default class AboutApp extends React.Component<{}, IState> {
|
||||
)()} \xA9 ${new Date().getFullYear()} ${appName}`;
|
||||
const podVersion = `${clientVersion} (${buildNumber})`;
|
||||
const sdaVersionBuild = `${sdaVersion} (${sdaBuildNumber})`;
|
||||
let sfeClientTypeName = 'SFE-Lite';
|
||||
const symphonySectionItems = [
|
||||
{
|
||||
key: 'POD:',
|
||||
@ -113,15 +112,11 @@ export default class AboutApp extends React.Component<{}, IState> {
|
||||
value: sdaVersionBuild,
|
||||
},
|
||||
{
|
||||
key: `${sfeClientTypeName}:`,
|
||||
key: `${SFE_CLIENT_TYPE_NAME}:`,
|
||||
value: `${sfeVersion} ${client}`,
|
||||
},
|
||||
];
|
||||
|
||||
if (sfeClientType !== '1.5') {
|
||||
sfeClientTypeName = 'SFE-Lite';
|
||||
}
|
||||
|
||||
return (
|
||||
<div className='AboutApp' lang={i18n.getLocale()}>
|
||||
<div className='AboutApp-header-container'>
|
||||
|
Loading…
Reference in New Issue
Block a user