Remove the Reconnect button (#444)

This commit is contained in:
M. Mert Yıldıran 2021-11-10 17:06:41 +03:00 committed by GitHub
parent d2fe3f6620
commit b970640ebc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 14 deletions

View File

@ -9,7 +9,6 @@ interface EntriesListProps {
setEntries: (entries: any[]) => void;
focusedEntryId: string;
setFocusedEntryId: (id: string) => void;
connectionOpen: boolean;
listEntryREF: any;
onScrollEvent: (isAtBottom:boolean) => void;
scrollableList: boolean;
@ -22,7 +21,7 @@ interface EntriesListProps {
startTime: number;
}
export const EntriesList: React.FC<EntriesListProps> = ({entries, setEntries, focusedEntryId, setFocusedEntryId, connectionOpen, listEntryREF, onScrollEvent, scrollableList, ws, openWebSocket, query, updateQuery, queriedCurrent, queriedTotal, startTime}) => {
export const EntriesList: React.FC<EntriesListProps> = ({entries, setEntries, focusedEntryId, setFocusedEntryId, listEntryREF, onScrollEvent, scrollableList, ws, openWebSocket, query, updateQuery, queriedCurrent, queriedTotal, startTime}) => {
const scrollableRef = useRef(null);
@ -38,9 +37,6 @@ export const EntriesList: React.FC<EntriesListProps> = ({entries, setEntries, fo
style={{}}
updateQuery={updateQuery}/>)}
</ScrollableFeedVirtualized>
{!connectionOpen && <div className={styles.fetchButtonContainer}>
<div className={styles.styledButton} onClick={() => {ws.close(); openWebSocket(query);}}>Reconnect</div>
</div>}
<button type="button"
className={`${styles.btnLive} ${scrollableList ? styles.showButton : styles.hideButton}`}
onClick={(_) => scrollableRef.current.jumpToBottom()}>

View File

@ -246,7 +246,6 @@ export const TrafficPage: React.FC<TrafficPageProps> = ({setAnalyzeStatus, onTLS
setEntries={setEntries}
focusedEntryId={focusedEntryId}
setFocusedEntryId={setFocusedEntryId}
connectionOpen={connection === ConnectionStatus.Connected}
listEntryREF={listEntry}
onScrollEvent={onScrollEvent}
scrollableList={disableScrollList}

View File

@ -38,14 +38,6 @@
border: 1px solid #627ef7
background-color: rgba(255, 255, 255, 0.06)
.fetchButtonContainer
width: 100%
display: flex
justify-content: center
margin-top: 12px
font-weight: 600
color: rgba(255,255,255,0.75)
.btnLive
position: absolute
bottom: 10px