feat(inspector): add the copy selector button (#9984)

This commit is contained in:
Pavel Feldman 2021-11-02 14:48:48 -08:00 committed by GitHub
parent c91ce5401e
commit 81ea40bb00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,6 +121,9 @@ export const Recorder: React.FC<RecorderProps> = ({
setSelector(event.target.value);
window.dispatch({ event: 'selectorUpdated', params: { selector: event.target.value } });
}} />
<ToolbarButton icon='files' title='Copy' onClick={() => {
copy(selectorInputRef.current?.value || '');
}}></ToolbarButton>
</Toolbar>
<CallLogView log={Array.from(log.values())}/>
</div>