Change hotkey handling to capture phase

This commit is contained in:
Gregory Schier
2024-02-06 23:44:10 -08:00
parent a2a36ceb54
commit d668244f9b
3 changed files with 7 additions and 8 deletions

View File

@@ -91,7 +91,6 @@ export function GrpcEditor({
}, [alert, services, request.method, request.service]);
const reflectionUnavailable = reflectionError?.match(/unimplemented/i);
const reflectionSuccess = !reflectionError && services != null && request.protoFiles.length === 0;
reflectionError = reflectionUnavailable ? undefined : reflectionError;
return (
@@ -105,7 +104,7 @@ export function GrpcEditor({
placeholder="..."
ref={editorViewRef}
actions={[
<div key="reflection" className={classNames(!reflectionSuccess && '!opacity-100')}>
<div key="reflection" className={classNames(services == null && '!opacity-100')}>
<Button
size="xs"
color={