diff --git a/src/app/window-handler.ts b/src/app/window-handler.ts index f6a29730..1bef3ff9 100644 --- a/src/app/window-handler.ts +++ b/src/app/window-handler.ts @@ -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); diff --git a/src/renderer/components/about-app.tsx b/src/renderer/components/about-app.tsx index 1c955cc1..c2b68031 100644 --- a/src/renderer/components/about-app.tsx +++ b/src/renderer/components/about-app.tsx @@ -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> {
  • POD: {hostname || 'N/A'}
  • SBE: {podVersion}
  • SDA: {sdaVersionBuild}
  • -
  • SFE: {sfeVersion}
  • +
  • SFE: {sfeVersion} {client}