From 4121da1c0625245003f099ae332035a26a3ea50e Mon Sep 17 00:00:00 2001 From: David Kaltschmidt Date: Tue, 31 Jan 2017 16:57:20 +0100 Subject: [PATCH] Added Internet button to debug toolbar --- client/app/scripts/components/debug-toolbar.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/client/app/scripts/components/debug-toolbar.js b/client/app/scripts/components/debug-toolbar.js index 8da0d3f0d..9913c7322 100644 --- a/client/app/scripts/components/debug-toolbar.js +++ b/client/app/scripts/components/debug-toolbar.js @@ -20,6 +20,7 @@ const NETWORKS = [ 'be', 'fe', 'zb', 'db', 're', 'gh', 'jk', 'lol', 'nw' ].map(n => ({id: n, label: n, colorKey: n})); +const INTERNET = 'the-internet'; const LOREM = `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in @@ -264,6 +265,14 @@ class DebugToolbar extends React.Component { )); } + addInternetNode() { + setTimeout(() => { + this.asyncDispatch(receiveNodesDelta({ + add: [{id: INTERNET, label: INTERNET, shape: 'cloud'}] + })); + }, 0); + } + addNodes(n, prefix = 'zing') { setTimeout(() => { this.asyncDispatch(receiveNodesDelta({ @@ -301,6 +310,7 @@ class DebugToolbar extends React.Component { Metric Variants +