diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json index be35dd241..b8656abe0 100644 --- a/app/_locales/en/messages.json +++ b/app/_locales/en/messages.json @@ -152,6 +152,12 @@ "message": "Allow $1 to spend your $2?", "description": "$1 is the url of the site and $2 is the symbol of the token they are requesting to spend" }, + "allowThisSiteTo": { + "message": "Allow this site to:" + }, + "allowExternalExtensionTo": { + "message": "Allow this external extension to:" + }, "allowWithdrawAndSpend": { "message": "Allow $1 to withdraw and spend up to the following amount:", "description": "The url of the site that requested permission to 'withdraw and spend'" @@ -291,9 +297,6 @@ "chainId": { "message": "Chain ID" }, - "chooseAccountsToUse": { - "message": "Choose the account(s) to use on this site" - }, "clickToRevealSeed": { "message": "Click here to reveal secret words" }, @@ -1213,6 +1216,9 @@ "selectingAllWillAllow": { "message": "Selecting all will allow this site to view all of your current accounts. Make sure you trust this site." }, + "selectAccounts": { + "message": "Select account(s)" + }, "selectAll": { "message": "Select all" }, @@ -1433,14 +1439,6 @@ "testFaucet": { "message": "Test Faucet" }, - "thisWillAllow": { - "message": "This will allow $1 to:", - "description": "$1 is the name or domain of a site/dapp that is requesting permissions" - }, - "thisWillAllowExternalExtension": { - "message": "This will allow an external extension with id $1 to:", - "description": "$1 is a string of random letters that are the id of another extension connecting to MetaMask" - }, "thisWillCreate": { "message": "This will create a new wallet and seed phrase" }, diff --git a/app/_locales/it/messages.json b/app/_locales/it/messages.json index e00eabb7f..aa481eb83 100644 --- a/app/_locales/it/messages.json +++ b/app/_locales/it/messages.json @@ -1345,14 +1345,6 @@ "testFaucet": { "message": "Prova Faucet" }, - "thisWillAllow": { - "message": "Questo consentirà $1 di:", - "description": "$1 is the name or domain of a site/dapp that is requesting permissions" - }, - "thisWillAllowExternalExtension": { - "message": "Questo consentirà una estensione esterna con id $1 di:", - "description": "$1 is a string of random letters that are the id of another extension connecting to MetaMask" - }, "thisWillCreate": { "message": "Questo creerà un nuovo portafoglio e frase seed" }, diff --git a/app/scripts/controllers/permissions/restrictedMethods.js b/app/scripts/controllers/permissions/restrictedMethods.js index 717361d96..15f240aca 100644 --- a/app/scripts/controllers/permissions/restrictedMethods.js +++ b/app/scripts/controllers/permissions/restrictedMethods.js @@ -2,7 +2,7 @@ export default function getRestrictedMethods ({ getIdentities, getKeyringAccount return { 'eth_accounts': { - description: `View the addresses of the user's chosen accounts.`, + description: `View your public address (required)`, method: (_, res, __, end) => { getKeyringAccounts() .then((accounts) => { diff --git a/test/e2e/ethereum-on.spec.js b/test/e2e/ethereum-on.spec.js index ddc76c23a..9ec96c0e2 100644 --- a/test/e2e/ethereum-on.spec.js +++ b/test/e2e/ethereum-on.spec.js @@ -125,10 +125,8 @@ describe('MetaMask', function () { await driver.delay(regularDelayMs) - await driver.clickElement(By.css('.permissions-connect-choose-account__account')) - await driver.clickElement(By.xpath(`//button[contains(text(), 'Next')]`)) - await driver.clickElement(By.xpath(`//button[contains(text(), 'Submit')]`)) + await driver.clickElement(By.xpath(`//button[contains(text(), 'Connect')]`)) await driver.waitUntilXWindowHandles(2) await driver.switchToWindow(dapp) diff --git a/test/e2e/metamask-ui.spec.js b/test/e2e/metamask-ui.spec.js index c660d0f38..1fe503d7d 100644 --- a/test/e2e/metamask-ui.spec.js +++ b/test/e2e/metamask-ui.spec.js @@ -416,7 +416,7 @@ describe('MetaMask', function () { await driver.clickElement(By.css('.permissions-connect-choose-account__account')) await driver.clickElement(By.xpath(`//button[contains(text(), 'Next')]`)) - await driver.clickElement(By.xpath(`//button[contains(text(), 'Submit')]`)) + await driver.clickElement(By.xpath(`//button[contains(text(), 'Connect')]`)) await driver.waitUntilXWindowHandles(2) await driver.switchToWindow(dapp) diff --git a/test/e2e/permissions.spec.js b/test/e2e/permissions.spec.js index 08d9b5e10..b94e2014d 100644 --- a/test/e2e/permissions.spec.js +++ b/test/e2e/permissions.spec.js @@ -123,10 +123,8 @@ describe('MetaMask', function () { await driver.delay(regularDelayMs) - await driver.clickElement(By.css('.permissions-connect-choose-account__account')) - await driver.clickElement(By.xpath(`//button[contains(text(), 'Next')]`)) - await driver.clickElement(By.xpath(`//button[contains(text(), 'Submit')]`)) + await driver.clickElement(By.xpath(`//button[contains(text(), 'Connect')]`)) await driver.waitUntilXWindowHandles(2) await driver.switchToWindow(extension) diff --git a/test/e2e/signature-request.spec.js b/test/e2e/signature-request.spec.js index 5aeaa67b6..de61d75f7 100644 --- a/test/e2e/signature-request.spec.js +++ b/test/e2e/signature-request.spec.js @@ -84,10 +84,8 @@ describe('MetaMask', function () { await driver.delay(regularDelayMs) - await driver.clickElement(By.css('.permissions-connect-choose-account__account')) - await driver.clickElement(By.xpath(`//button[contains(text(), 'Next')]`)) - await driver.clickElement(By.xpath(`//button[contains(text(), 'Submit')]`)) + await driver.clickElement(By.xpath(`//button[contains(text(), 'Connect')]`)) await driver.waitUntilXWindowHandles(2) await driver.switchToWindow(dapp) diff --git a/ui/app/components/app/modals/new-account-modal/index.scss b/ui/app/components/app/modals/new-account-modal/index.scss index d6c2d0ac1..687f6b5f0 100644 --- a/ui/app/components/app/modals/new-account-modal/index.scss +++ b/ui/app/components/app/modals/new-account-modal/index.scss @@ -8,7 +8,17 @@ border-bottom: 1px solid $Grey-100; &__header { - @extend %h3; + @extend %header--18; + font-weight: bold; + display: flex; + justify-content: space-between; + align-items: center; + } + + &__header-close { + color: #24292E; + background: none; + font-size: 1.1rem; } } diff --git a/ui/app/components/app/modals/new-account-modal/new-account-modal.component.js b/ui/app/components/app/modals/new-account-modal/new-account-modal.component.js index 547b93285..f560036ad 100644 --- a/ui/app/components/app/modals/new-account-modal/new-account-modal.component.js +++ b/ui/app/components/app/modals/new-account-modal/new-account-modal.component.js @@ -43,6 +43,11 @@ export default class NewAccountModal extends Component {