-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add read-only inputs to UI plus Copy to Clipboard buttons #3095
Conversation
@@ -31,7 +31,8 @@ export default class AccountDetails extends Component { | |||
return ( | |||
<Form> | |||
<Input | |||
disabled | |||
readOnly | |||
copiable |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Address above not copyable?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
This should fix #3066 #3052 and #3009
disabled
inputs are converted toreadonly
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....