Make RelinkDialog supersede the NetworkDialog
This commit is contained in:
parent
1b5c36a9a8
commit
752cd75c54
5 changed files with 9 additions and 26 deletions
|
@ -13,9 +13,9 @@ export const hasNetworkDialog = createSelector(
|
|||
{ isOnline, socketStatus, withinConnectingGracePeriod }: NetworkStateType,
|
||||
isRegistrationDone: boolean
|
||||
): boolean =>
|
||||
!isOnline ||
|
||||
!isRegistrationDone ||
|
||||
(socketStatus === WebSocket.CONNECTING && !withinConnectingGracePeriod) ||
|
||||
socketStatus === WebSocket.CLOSED ||
|
||||
socketStatus === WebSocket.CLOSING
|
||||
isRegistrationDone &&
|
||||
(!isOnline ||
|
||||
(socketStatus === WebSocket.CONNECTING && !withinConnectingGracePeriod) ||
|
||||
socketStatus === WebSocket.CLOSED ||
|
||||
socketStatus === WebSocket.CLOSING)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue