From b7ccb9a34c45a51bdb84f2d9936dfe31cc3debf7 Mon Sep 17 00:00:00 2001 From: Akash Hamirwasia Date: Tue, 12 Oct 2021 21:19:29 +0530 Subject: [PATCH] feat: disable inputs in realtime and graphql connections when active (#1870) --- packages/hoppscotch-app/components/graphql/Request.vue | 1 + packages/hoppscotch-app/components/realtime/Mqtt.vue | 1 + packages/hoppscotch-app/components/realtime/Socketio.vue | 7 +++++++ packages/hoppscotch-app/components/realtime/Sse.vue | 4 +++- packages/hoppscotch-app/components/realtime/Websocket.vue | 1 + 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/hoppscotch-app/components/graphql/Request.vue b/packages/hoppscotch-app/components/graphql/Request.vue index 304ca6482..96d80bf12 100644 --- a/packages/hoppscotch-app/components/graphql/Request.vue +++ b/packages/hoppscotch-app/components/graphql/Request.vue @@ -20,6 +20,7 @@ focus-visible:bg-transparent focus-visible:border-dividerDark " :placeholder="$t('request.url')" + :disabled="connected" @keyup.enter="onConnectClick" /> @@ -78,6 +79,7 @@ focus-visible:border-dividerDark " :placeholder="$t('socketio.url')" + :disabled="connectionState" @keyup.enter="urlValid ? toggleConnection() : null" />