mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
SDA-4102 SDA-4104 About window client version improvement
This commit is contained in:
committed by
Salah Benmoussati
parent
8ab1c1af9f
commit
423e4cfbb3
@@ -1209,11 +1209,7 @@ export class WindowHandler {
|
|||||||
this.aboutAppWindow.webContents.once('did-finish-load', async () => {
|
this.aboutAppWindow.webContents.once('did-finish-load', async () => {
|
||||||
let client = '';
|
let client = '';
|
||||||
if (this.url && this.url.startsWith('https://corporate.symphony.com')) {
|
if (this.url && this.url.startsWith('https://corporate.symphony.com')) {
|
||||||
client = this.url.includes('bff')
|
client = this.url.includes('daily') ? '- Daily' : '';
|
||||||
? this.url.includes('daily')
|
|
||||||
? 'Symphony 2.0 - Daily'
|
|
||||||
: 'Symphony 2.0'
|
|
||||||
: 'Symphony Classic';
|
|
||||||
}
|
}
|
||||||
const ABOUT_SYMPHONY_NAMESPACE = 'AboutSymphony';
|
const ABOUT_SYMPHONY_NAMESPACE = 'AboutSymphony';
|
||||||
const versionLocalised = i18n.t('Version', ABOUT_SYMPHONY_NAMESPACE)();
|
const versionLocalised = i18n.t('Version', ABOUT_SYMPHONY_NAMESPACE)();
|
||||||
|
|||||||
@@ -94,12 +94,16 @@ export default class AboutApp extends React.Component<{}, IState> {
|
|||||||
} = this.state;
|
} = this.state;
|
||||||
|
|
||||||
const appName = productName || 'Symphony';
|
const appName = productName || 'Symphony';
|
||||||
|
const sfeVersionPrefix = 'sfe-lite-';
|
||||||
const copyright = `${i18n.t(
|
const copyright = `${i18n.t(
|
||||||
'Copyright',
|
'Copyright',
|
||||||
ABOUT_SYMPHONY_NAMESPACE,
|
ABOUT_SYMPHONY_NAMESPACE,
|
||||||
)()} \xA9 ${new Date().getFullYear()} ${appName}`;
|
)()} \xA9 ${new Date().getFullYear()} ${appName}`;
|
||||||
const podVersion = `${clientVersion} (${buildNumber})`;
|
const podVersion = `${clientVersion} (${buildNumber})`;
|
||||||
const sdaVersionBuild = `${sdaVersion} (${sdaBuildNumber})`;
|
const sdaVersionBuild = `${sdaVersion} (${sdaBuildNumber})`;
|
||||||
|
const formattedSfeVersion = sfeVersion?.includes(sfeVersionPrefix)
|
||||||
|
? sfeVersion.split(sfeVersionPrefix)[1]
|
||||||
|
: sfeVersion;
|
||||||
const symphonySectionItems = [
|
const symphonySectionItems = [
|
||||||
{
|
{
|
||||||
key: 'POD:',
|
key: 'POD:',
|
||||||
@@ -115,7 +119,7 @@ export default class AboutApp extends React.Component<{}, IState> {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: `${SFE_CLIENT_TYPE_NAME}:`,
|
key: `${SFE_CLIENT_TYPE_NAME}:`,
|
||||||
value: `${sfeVersion} ${client}`,
|
value: `${formattedSfeVersion} ${client}`,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user