mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-29 02:11:28 -06:00
Merge pull request #1110 from johankwarnmarksymphony/sda-2270
chore: SDA-2270: change clientVersion to sbeVersion
This commit is contained in:
commit
18e4b79f8e
@ -6,13 +6,13 @@ import { ipcRenderer, remote } from './__mocks__/electron';
|
||||
describe('about app', () => {
|
||||
const aboutAppDataLabel = 'about-app-data';
|
||||
const aboutDataMock = {
|
||||
sbeVersion: '1',
|
||||
userConfig: {},
|
||||
globalConfig: {},
|
||||
cloudConfig: {},
|
||||
finalConfig: {},
|
||||
appName: 'Symphony',
|
||||
versionLocalised: 'Version',
|
||||
clientVersion: '1',
|
||||
buildNumber: '4.x.x',
|
||||
hostname: 'N/A',
|
||||
sfeVersion: 'N/A',
|
||||
|
@ -1,7 +1,6 @@
|
||||
import { ipcRenderer, remote } from 'electron';
|
||||
import * as React from 'react';
|
||||
import { i18n } from '../../common/i18n-preload';
|
||||
|
||||
interface IState {
|
||||
userConfig: object;
|
||||
globalConfig: object;
|
||||
@ -131,7 +130,8 @@ export default class AboutApp extends React.Component<{}, IState> {
|
||||
* Copies the version info on to the clipboard
|
||||
*/
|
||||
public copy(): void {
|
||||
const data = this.state;
|
||||
const { clientVersion, ...rest } = this.state;
|
||||
const data = { ...{ sbeVersion: clientVersion }, ...rest };
|
||||
if (data) {
|
||||
remote.clipboard.write({ text: JSON.stringify(data, null, 4) }, 'clipboard');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user