Skip to content

Add lock icon to default networks#9269

Merged
brad-decker merged 1 commit intoMetaMask:developfrom
PatrykLucka:add-lock-to-default-networks
Aug 19, 2020
Merged

Add lock icon to default networks#9269
brad-decker merged 1 commit intoMetaMask:developfrom
PatrykLucka:add-lock-to-default-networks

Conversation

@PatrykLucka
Copy link
Copy Markdown
Contributor

This PR adds lock icon next to default networks in networks list in settings. It was not clear that these networks cannot be edited nor deleted. It makes it easier to differentiate them from custom rpc networks.

Addresses the issues brought up in #8566

Screenshot 2020-08-19 at 08.53.17

@PatrykLucka PatrykLucka requested a review from a team as a code owner August 19, 2020 07:03
@danjm
Copy link
Copy Markdown
Contributor

danjm commented Aug 19, 2020

Code looks good. I checked out the branch and UI looks good:

Screenshot from 2020-08-19 08-55-01

@danjm
Copy link
Copy Markdown
Contributor

danjm commented Aug 19, 2020

One slight UX improve might be to hide the "Cancel" and "Save" buttons entirely for these networks that get the lock symbol. But I won't block over that possible improvement.

@brad-decker brad-decker merged commit 50c4845 into MetaMask:develop Aug 19, 2020
Gudahtt added a commit that referenced this pull request Aug 19, 2020
* origin/develop: (137 commits)
  Use @metamask/eslint-config@3.1.0 (#9275)
  Standardize scss import practices (#9183)
  Update ESLint shared config to v3 (#9274)
  Add lock icon to default networks (#9269)
  Adds toPrecisionWithoutTrailingZeros utility (#9270)
  Hide gas estimate on non-main network (#9189)
  Move the mascot component to its own directory (#9272)
  Use @metamask/controllers@2.0.5 (#9266)
  Fix padding, alignment of actionable-message; add left aligned story
  Code cleanup and simplification for actionable-message component
  Adds actionable message component and stories
  Fix lint issues (#9265)
  Fix prefer-destructuring issues (#9263)
  colocate confirm-decrypt-message page styles (#9252)
  Tidy up Migrator tests (#9264)
  Adds pulse loader component (#9259)
  Fix import/order issues (#9239)
  Fix radix issues (#9247)
  New info tooltip component (#9180)
  Improve scss naming
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants