mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-09 18:53:38 +02:00
Change hotkey handling to capture phase
This commit is contained in:
@@ -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={
|
||||
|
||||
Reference in New Issue
Block a user