Skip to content

Commit a8880e1

Browse files
authored
DYN-5816 Displaying the proper info according to the language (#32)
* Dealing with the initial info to display apart of the language * Set the default title * Update version
1 parent a475887 commit a8880e1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dynamods/splash-screen",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"description": "Splash Screen maintained by Dynamo Team@Autodesk",
55
"author": "Autodesk Inc.",
66
"license": "MIT",

src/Dynamic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Dynamic extends React.Component {
99
barSize: '0%',
1010
dynamoVersion: '',
1111
loadDescription: '',
12-
loadingTime: 'Loading time: ',
12+
loadingTime: '',
1313
};
1414

1515
//This is a reference to the DOM of the project that will be called in Dynamo to fill the loading properties

src/Static.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Static extends React.Component {
4949

5050
<Row className='mt-3'>
5151
<button id='btnSignIn' className='primaryButton' onClick={this.signIn} tabIndex={2}>
52-
{this.state.signInTitle}
52+
{this.props.signInTitle}
5353
</button>
5454
</Row>
5555

@@ -81,7 +81,7 @@ class Static extends React.Component {
8181
alt=''
8282
hidden={this.state.importStatus !== importStatusEnum.success}></img>
8383
<div className='importSettingsText'>
84-
<span>{this.state.importSettingsTitle}</span>
84+
<span>{this.props.importSettingsTitle}</span>
8585
</div>
8686
</div>
8787
</label>

tests/e2e.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ test.describe('SplashScreen', () => {
2525
await expect(progressBarIndicator).toBeVisible;
2626

2727
const loadingTimeFooter = page.locator('.loadingTimeFooter');
28-
await expect(loadingTimeFooter).toHaveText('Loading time:');
28+
await expect(loadingTimeFooter).toHaveText('');
2929
});
3030

3131
});

0 commit comments

Comments
 (0)