diff --git a/src/js/components/core/SideBar/SideBarContainer.js b/src/js/components/core/SideBar/SideBarContainer.js index 73931075d6..48d6bd183c 100644 --- a/src/js/components/core/SideBar/SideBarContainer.js +++ b/src/js/components/core/SideBar/SideBarContainer.js @@ -68,7 +68,7 @@ class SideBarContainer extends React.Component{ render(){ let sideBarContent; - if(this.state.SideNavBar){ + if(this.state.SideNavBar || this.props.initShow){ sideBarContent =

diff --git a/src/js/components/core/login/Login.js b/src/js/components/core/login/Login.js index bf3c1fbc64..de9c709e67 100644 --- a/src/js/components/core/login/Login.js +++ b/src/js/components/core/login/Login.js @@ -37,14 +37,13 @@ class Login extends React.Component { _this.props.success(); } }).catch(function(reason) { - //console.log(reason); + console.log(reason); if (reason.status === 401) { - dialog.showErrorBox('Login Failed', 'Incorrect username or password'); - } else if (reason.hasOwnProperty('message')) { + dialog.showErrorBox('Login Failed', 'Incorrect username or password. This could be caused by using an email address instead of a username.'); + } else if (reason.message) { dialog.showErrorBox('Login Failed', reason.message); - } else if (reason.hasOwnProperty('data')) { - let errorMessage = reason.data; - dialog.showErrorBox('Login Failed', errorMessage); + } else if (reason.data) { + dialog.showErrorBox('Login Failed', reason.data); } else { dialog.showErrorBox('Login Failed', 'Unknown Error'); } diff --git a/src/js/components/core/welcome/welcome.js b/src/js/components/core/welcome/welcome.js index ca26021aa0..1317ed8e77 100644 --- a/src/js/components/core/welcome/welcome.js +++ b/src/js/components/core/welcome/welcome.js @@ -6,6 +6,9 @@ const CoreActions = require('../../../actions/CoreActions.js'); const ProjectModal = require('../create_project/ProjectModal'); const Login = require('../login/Login'); +const StatusBar = require('../SideBar/StatusBar'); +const SideBarContainer = require('../SideBar/SideBarContainer'); + const Upload = require('../Upload'); const loadOnline = require('../LoadOnline'); const SideNavBar = require('../SideBar/SideNavBar'); @@ -152,8 +155,8 @@ class Welcome extends React.Component{

Clicking this button allows you to log in or log out to your Door43 account. Additionally giving you access to more information about your account.

@@ -170,13 +173,13 @@ class Welcome extends React.Component{ case 2: return( + positionLeft={115} + positionTop={125} + title="Sync Your Work To Door43">
-

Clicking this button allows you to import your own or someone else's translationStudio project as well as open an existing translationCore project.

+

Clicking this button allows you to save or update a copy of your project to your Door43 account.

) @@ -210,13 +213,13 @@ class Welcome extends React.Component{ case 4: return( + positionLeft={115} + positionTop={255} + title="Settings">
-

Clicking this button allows you to generate a report for all of the checks performed in the currently opened project.

+

Clicking this button allows you to access various settings options to make translationCore look and perform according to your needs.