From 309084f73c62a1696e026a732b24d9ef07e7d022 Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Mon, 27 Apr 2020 11:48:22 +0200 Subject: [PATCH] add some todos --- src/dashboard/dashboard.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/dashboard/dashboard.js b/src/dashboard/dashboard.js index 98c3d40..5bde062 100644 --- a/src/dashboard/dashboard.js +++ b/src/dashboard/dashboard.js @@ -86,7 +86,7 @@ class Dashboard extends Component { } } - + // TODO create list of infrastructure components in use return { dashboard, @@ -110,7 +110,6 @@ class Dashboard extends Component { } - static getNewWidgetKey() { const widgetKey = this.lastWidgetKey; this.lastWidgetKey++; @@ -128,7 +127,9 @@ class Dashboard extends Component { param: '?dashboardID=' + this.state.dashboard.id }); + // TODO open websockets in componentDidMount + // TODO close websockets in componentWillUnmount } handleKeydown(e) { @@ -264,7 +265,7 @@ class Dashboard extends Component { deleteWidget(widget, index) { - + AppDispatcher.dispatch({ type: 'widgets/start-remove', data: widget,