Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Add read-only inputs to UI plus Copy to Clipboard buttons #3095

Merged
merged 8 commits into from
Nov 2, 2016

Conversation

ngotchac
Copy link
Contributor

@ngotchac ngotchac commented Nov 2, 2016

This should fix #3066 #3052 and #3009

disabled inputs are converted to readonly inputs.
New props can be added to Input components to render a Copy to Clipboard button.
This has been added in Contracts/Accounts/Events/Account Creation....

@ngotchac ngotchac added A0-pleasereview 🤓 Pull request needs code review. M6-ui labels Nov 2, 2016
@@ -31,7 +31,8 @@ export default class AccountDetails extends Component {
return (
<Form>
<Input
disabled
readOnly
copiable
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copyable :)

allowCopy is probably better.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right

@@ -129,10 +129,12 @@ class Event extends Component {

return (
<Input
disabled
readOnly
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Address above not copyable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addresses are always copyable if disabled/readonly. Is that not right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aaaahhhh... sorrry, must have had one eye closed. Perfect.

@jacogr jacogr added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Nov 2, 2016
@jacogr jacogr merged commit e4c75bd into master Nov 2, 2016
@jacogr jacogr deleted the ng-copy-inputs branch November 2, 2016 16:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make recovery phrase copy/pastable
2 participants