From dee1abb1da46f0f7f62dd28c3ec46e905c0966c0 Mon Sep 17 00:00:00 2001 From: Thomas Nordquist Date: Mon, 4 Mar 2019 17:55:47 +0100 Subject: [PATCH] Show notification when client got disconnected --- app/src/actions/Connection.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/actions/Connection.ts b/app/src/actions/Connection.ts index 4d30d5a..67c296e 100644 --- a/app/src/actions/Connection.ts +++ b/app/src/actions/Connection.ts @@ -13,6 +13,7 @@ import { MqttOptions, DataSourceState } from '../../../backend/src/DataSource' import { showTree } from './Tree' import { TopicViewModel } from '../TopicViewModel' import { showError } from './Global' +import { globalActions } from '.'; export const connect = (options: MqttOptions, connectionId: string) => (dispatch: Dispatch, getState: () => AppState) => { dispatch(connecting(connectionId)) @@ -41,6 +42,7 @@ const updateHealth = (dataSourceState: DataSourceState) => (dispatch: Dispatch