Retry websocket connect if error returned is 502

* Retry websocket connect if error returned is 502

* Introduce connect button on 'Disconnected' left-pane dialog

* NetworkStatus: If user clicks connect, show connecting for 5s
This commit is contained in:
Scott Nonnenberg 2020-03-20 11:01:55 -07:00
parent c44176f7f3
commit 6bd5587d50
5 changed files with 89 additions and 15 deletions

View file

@ -19,6 +19,7 @@ const defaultProps = {
isRegistrationDone: true,
socketStatus: 0,
relinkDevice: action('relink-device'),
manualReconnect: action('manual-reconnect'),
withinConnectingGracePeriod: false,
};
@ -41,12 +42,6 @@ const permutations = [
socketStatus: 3,
},
},
{
title: 'Offline',
props: {
isOnline: false,
},
},
{
title: 'Unlinked (online)',
props: {
@ -60,6 +55,12 @@ const permutations = [
isRegistrationDone: false,
},
},
{
title: 'Offline',
props: {
isOnline: false,
},
},
];
storiesOf('Components/NetworkStatus', module)