Skip to content

Commit

Permalink
Show hostname in the disconnect confirmation (#8663)
Browse files Browse the repository at this point in the history
  • Loading branch information
whymarrh authored May 27, 2020
1 parent 34adcce commit 3931427
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class ConnectedSitesList extends Component {
<i
className="fas fa-trash-alt connected-sites-list__trash"
title={t('disconnect')}
onClick={() => onDisconnect(domain.key, domain.name)}
onClick={() => onDisconnect(domain.key)}
/>
</div>
)) }
Expand Down
7 changes: 3 additions & 4 deletions ui/app/pages/connected-sites/connected-sites.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ export default class ConnectedSites extends Component {
getOpenMetamaskTabsIds()
}

setPendingDisconnect = (domainKey, domainName) => {
setPendingDisconnect = (domainKey) => {
this.setState({
sitePendingDisconnect: {
domainKey,
domainName,
},
})
}
Expand Down Expand Up @@ -119,14 +118,14 @@ export default class ConnectedSites extends Component {

const { closePopover, permittedAccountsByOrigin } = this.props
const { t } = this.context
const { sitePendingDisconnect: { domainKey, domainName } } = this.state
const { sitePendingDisconnect: { domainKey } } = this.state

const numPermittedAccounts = permittedAccountsByOrigin[domainKey].length

return (
<Popover
className="connected-sites"
title={t('disconnectPrompt', [domainName])}
title={t('disconnectPrompt', [domainKey])}
subtitle={t('disconnectAllAccountsConfirmationDescription')}
onClose={closePopover}
footer={(
Expand Down

0 comments on commit 3931427

Please sign in to comment.