Add copyable SID to Account and Application edit pages

This commit is contained in:
James Nuanez committed 2020-07-25 14:37:27 -07:00
1 parent 49caba6c9f
commit 64d2a40769
3 files changed
+79 -2

No files matched your search

+18 -1
View File
@@ -14,6 +14,7 @@ import SpeechSynthesisLanguageGoogle from '../../data/SpeechSynthesisLanguageGoo
import SpeechSynthesisLanguageAws from '../../data/SpeechSynthesisLanguageAws';
import SpeechRecognizerLanguageGoogle from '../../data/SpeechRecognizerLanguageGoogle';
import Loader from '../blocks/Loader';
import CopyableText from '../elements/CopyableText';
const ApplicationForm = props => {
let history = useHistory();
@@ -391,11 +392,27 @@ const ApplicationForm = props => {
return (
showLoader
? <Loader height={props.type === 'setup' ? '505px' : '630px'}/>
? <Loader
height={
props.type === 'setup'
? '505px'
: props.type === 'edit'
? '646px'
: '611px'
}
/>
: <Form
large
onSubmit={handleSubmit}
>
{props.type === 'edit' && (
<React.Fragment>
<Label>ApplicationSid</Label>
<CopyableText text={applicationSid} textType="ApplicationSid" />
</React.Fragment>
)}
{(props.type === 'add' || props.type === 'edit') && (
<React.Fragment>
<Label htmlFor="name">Name</Label>