mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Show client Symphony Classic, Symphony 2.0 or Symphony 2.0 - Daily in the about dialog for corp users
This commit is contained in:
parent
7910a14971
commit
3cda4b30a1
@ -712,7 +712,22 @@ export class WindowHandler {
|
||||
this.aboutAppWindow = createComponentWindow('about-app', opts);
|
||||
this.moveWindow(this.aboutAppWindow);
|
||||
this.aboutAppWindow.setVisibleOnAllWorkspaces(true);
|
||||
|
||||
this.aboutAppWindow.webContents.once('did-finish-load', async () => {
|
||||
let client = '';
|
||||
if (this.url && this.url.startsWith('https://corporate.symphony.com')) {
|
||||
const manaPath = 'client-bff';
|
||||
const daily = 'daily';
|
||||
if (this.url.includes(manaPath)) {
|
||||
if (this.url.includes(daily)) {
|
||||
client = 'Symphony 2.0 - Daily';
|
||||
} else {
|
||||
client = 'Symphony 2.0';
|
||||
}
|
||||
} else {
|
||||
client = 'Symphony Classic';
|
||||
}
|
||||
}
|
||||
const ABOUT_SYMPHONY_NAMESPACE = 'AboutSymphony';
|
||||
const versionLocalised = i18n.t('Version', ABOUT_SYMPHONY_NAMESPACE)();
|
||||
const { hostname } = parse(this.url || this.globalConfig.url);
|
||||
@ -729,6 +744,7 @@ export class WindowHandler {
|
||||
hostname,
|
||||
versionLocalised,
|
||||
...versionHandler.versionInfo,
|
||||
client,
|
||||
};
|
||||
if (this.aboutAppWindow && windowExists(this.aboutAppWindow)) {
|
||||
this.aboutAppWindow.webContents.send('about-app-data', aboutInfo);
|
||||
|
@ -27,6 +27,7 @@ interface IState {
|
||||
httpParserVersion?: string;
|
||||
swiftSearchVersion?: string;
|
||||
swiftSearchSupportedVersion?: string;
|
||||
client?: string;
|
||||
}
|
||||
|
||||
const ABOUT_SYMPHONY_NAMESPACE = 'AboutSymphony';
|
||||
@ -75,7 +76,7 @@ export default class AboutApp extends React.Component<{}, IState> {
|
||||
*/
|
||||
public render(): JSX.Element {
|
||||
const { clientVersion, buildNumber, hostname, sfeVersion,
|
||||
sdaVersion, sdaBuildNumber,
|
||||
sdaVersion, sdaBuildNumber, client,
|
||||
} = this.state;
|
||||
|
||||
const appName = remote.app.getName() || 'Symphony';
|
||||
@ -103,7 +104,7 @@ export default class AboutApp extends React.Component<{}, IState> {
|
||||
<li><b>POD:</b> {hostname || 'N/A'}</li>
|
||||
<li><b>SBE:</b> {podVersion}</li>
|
||||
<li><b>SDA:</b> {sdaVersionBuild}</li>
|
||||
<li><b>SFE:</b> {sfeVersion}</li>
|
||||
<li><b>SFE:</b> {sfeVersion} {client}</li>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user