diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-06-19 12:46:46 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-06-19 15:01:25 -0500 |
| commit | 198be40b601e3eab548134884391859ece62be0c (patch) | |
| tree | 492c85fdebbe49b3a2b3ddb8a8e1b3b3f992c1d9 /src/web | |
| parent | 329904e11fe240558c76d523014dcc3b400497a0 (diff) | |
| download | slskd-198be40b601e3eab548134884391859ece62be0c.tar.gz | |
fix namespace issue in test
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/src/components/App.css | 2 | ||||
| -rw-r--r-- | src/web/src/components/App.jsx | 5 | ||||
| -rw-r--r-- | src/web/src/components/AppFooter.jsx | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/src/web/src/components/App.css b/src/web/src/components/App.css index 45e0e64d..1e2000f9 100644 --- a/src/web/src/components/App.css +++ b/src/web/src/components/App.css @@ -129,7 +129,7 @@ body { .app-content-body { flex: 1; - padding-bottom: 45px; /* footer */ + padding-bottom: 40px; /* footer */ } .navigation { diff --git a/src/web/src/components/App.jsx b/src/web/src/components/App.jsx index e412186b..0c0ca5a5 100644 --- a/src/web/src/components/App.jsx +++ b/src/web/src/components/App.jsx @@ -156,6 +156,7 @@ class App extends Component { super(props); this.state = initialState; + this.hubConnections = {}; } componentDidMount() { @@ -208,6 +209,8 @@ class App extends Component { this.setState({ error: false, retriesExhausted: false }), ); + await this.hubConnections.appHub?.stop(); + this.hubConnections.appHub = appHub; await appHub.start(); const metricsHub = createMetricsHubConnection(); @@ -216,6 +219,8 @@ class App extends Component { this.setState({ transferMetrics: metrics }); }); + await this.hubConnections.metricsHub?.stop(); + this.hubConnections.metricsHub = metricsHub; await metricsHub.start(); } diff --git a/src/web/src/components/AppFooter.jsx b/src/web/src/components/AppFooter.jsx index 35cfcd71..c7265e8a 100644 --- a/src/web/src/components/AppFooter.jsx +++ b/src/web/src/components/AppFooter.jsx @@ -3,7 +3,7 @@ import React from 'react'; import { Icon, Menu } from 'semantic-ui-react'; const formatSpeed = (bytesPerSecond) => { - if (!bytesPerSecond) { + if (!bytesPerSecond || bytesPerSecond < 1) { return ' 0 B/s'; } |
