update text

pull/5370/head
filip mertens 2 years ago committed by Aniket
parent 822353db24
commit 71fb089196
  1. 2
      apps/remix-ide-e2e/src/tests/workspace_git.test.ts
  2. 2
      libs/remix-ui/workspace/src/lib/actions/workspace.ts
  3. 3
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -15,7 +15,7 @@ module.exports = {
.waitForElementVisible('*[data-id="modalDialogCustomPromptTextCreate"]')
.waitForElementVisible('[data-id="fileSystemModalDialogModalFooter-react"] > button')
.waitForElementVisible({
selector: "//*[@class='text-warning' and contains(.,'You need to set a username')]",
selector: "//*[@class='text-warning' and contains(.,'Please add username and email')]",
locateStrategy: 'xpath'
})
.waitForElementPresent({

@ -95,7 +95,7 @@ export const createWorkspace = async (workspaceName: string, workspaceTemplateNa
if (!currentBranch) {
if (!name || !email) {
await plugin.call('notification', 'toast', 'Please provide GitHub details in the settings section to start committing.')
await plugin.call('notification', 'toast', 'Please add username and email to Remix GitHub Settings to use git features.')
} else {
// commit the template as first commit
plugin.call('notification', 'toast', 'Creating initial git commit ...')

@ -317,8 +317,7 @@ export function Workspace () {
</div>
{!global.fs.gitConfig.username || !global.fs.gitConfig.email ?
(
<div className='text-warning'>You need to set a username and email to be able to use git features.<br>
</br>Please update these fields in the settings of Remix</div>)
<div className='text-warning'>Please add username and email to Remix GitHub Settings to use git features.</div>)
:<></>
}

Loading…
Cancel
Save