Add Kill Switch section
Currently there's a nasty bug which doesn't allow users from navigating
from the "Kill Switch" section to any other section of the app (see bug
twpowertools:59), but everything else is working.
Change-Id: I3c71352b1899e4ddf9ba5886aa1434a5a1ed93eb
diff --git a/frontend/src/store/index.js b/frontend/src/store/index.js
index 9dbf288..0666838 100644
--- a/frontend/src/store/index.js
+++ b/frontend/src/store/index.js
@@ -29,7 +29,12 @@
},
actions: {
connectClient(store, host) {
+ // We enable the dev tools in case they are useful sometime in the future.
+ const enableDevTools = window.__GRPCWEB_DEVTOOLS__ || (() => {});
store.state.client = new KillSwitchServicePromiseClient(host, null, null);
+ enableDevTools([
+ store.state.client,
+ ]);
},
},
});