fix: realtime connect/disconnect issue (#2768)

Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
This commit is contained in:
Anwarul Islam
2022-10-13 18:03:46 +06:00
committed by GitHub
parent 7b61f267dd
commit 44f11f93a4
40 changed files with 91 additions and 17 deletions

View File

@@ -24,7 +24,9 @@
:disabled="!isUrlValid"
class="w-32"
:label="
connectionState === 'DISCONNECTED'
connectionState === 'CONNECTING'
? t('action.connecting')
: connectionState === 'DISCONNECTED'
? t('action.connect')
: t('action.disconnect')
"

View File

@@ -82,7 +82,9 @@
name="connect"
class="w-32"
:label="
connectionState === 'DISCONNECTED'
connectionState === 'CONNECTING'
? t('action.connecting')
: connectionState === 'DISCONNECTED'
? t('action.connect')
: t('action.disconnect')
"

View File

@@ -2,7 +2,7 @@
<AppPaneLayout layout-id="sse">
<template #primary>
<div
class="sticky top-0 z-10 flex flex-shrink-0 p-4 overflow-x-auto space-x-2 bg-primary"
class="sticky top-0 z-10 flex flex-shrink-0 p-4 space-x-2 overflow-x-auto bg-primary"
>
<div class="inline-flex flex-1 space-x-2">
<div class="flex flex-1">
@@ -42,7 +42,9 @@
name="start"
class="w-32"
:label="
connectionState === 'STOPPED'
connectionState === 'STARTING'
? t('action.starting')
: connectionState === 'STOPPED'
? t('action.start')
: t('action.stop')
"

View File

@@ -26,7 +26,9 @@
class="w-32"
name="connect"
:label="
connectionState === 'DISCONNECTED'
connectionState === 'CONNECTING'
? t('action.connecting')
: connectionState === 'DISCONNECTED'
? t('action.connect')
: t('action.disconnect')
"