From 26c134e898c65110e63dcc4254cf7693f5f096a2 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 12 Oct 2021 09:08:03 -0500 Subject: capture options from SignalR and pass to System --- src/web/src/components/App.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/web/src/components/App.js b/src/web/src/components/App.js index f8813820..0eb2b6a9 100644 --- a/src/web/src/components/App.js +++ b/src/web/src/components/App.js @@ -34,6 +34,7 @@ const initialState = { error: undefined }, applicationState: {}, + applicationOptions: {}, error: false, }; @@ -64,6 +65,11 @@ class App extends Component { this.setState({ applicationState: state }); }); + appHub.on('options', (options) => { + console.debug(options); + this.setState({ applicationOptions: options }); + }) + appHub.onreconnecting(() => this.setState({ error: true })); appHub.onclose(() => this.setState({ error: true })); appHub.onreconnected(() => this.setState({ error: false })); @@ -226,7 +232,7 @@ class App extends Component { this.withTokenCheck()}/> this.withTokenCheck()}/> this.withTokenCheck()}/> - this.withTokenCheck()}/> + this.withTokenCheck()}/> this.withTokenCheck()}/> -- cgit v1.2.3