refactoring, clean up

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2021-01-28 18:54:22 +02:00
1 parent 4de50d6083
commit 386aebf98a
2 files changed
+33 -18

No files matched your search

+6 -3
View File
@@ -74,12 +74,15 @@ export class App extends React.Component {
window.location.reload();
});
whatInput.ask(); // Start to monitor user input device
await namespaceStore.whenReady;
await kubeWatchApi.init({
getCluster: getHostedCluster,
getNamespaces: namespaceStore.getContextNamespaces,
});
}
componentDidMount() {
kubeWatchApi.setupCluster(getHostedCluster);
kubeWatchApi.setupWatchingNamespaces(namespaceStore.getContextNamespaces);
disposeOnUnmount(this, [
kubeWatchApi.subscribeStores([podsStore, nodesStore, eventStore], {
preload: true,