diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-11-15 10:26:16 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-11-15 10:26:16 -0600 |
| commit | 17d635f9471747de03f2cf98d2a3bd9474182dbc (patch) | |
| tree | cf4345040c2727d8033bd39e08335d751d798938 | |
| parent | 46c76a768f515214dfaf3b58b79bc0ca48aa8a71 (diff) | |
| download | slskd-17d635f9471747de03f2cf98d2a3bd9474182dbc.tar.gz | |
add default route back
| -rw-r--r-- | src/web/src/components/App.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/web/src/components/App.js b/src/web/src/components/App.js index 8e31741c..9380f19d 100644 --- a/src/web/src/components/App.js +++ b/src/web/src/components/App.js @@ -5,7 +5,7 @@ import { ToastContainer } from 'react-toastify'; import 'react-toastify/dist/ReactToastify.css'; import * as session from '../lib/session'; -import * as relay from '../lib/relay'; +import * as relayAPI from '../lib/relay'; import { connect, disconnect } from '../lib/server'; import { urlBase } from '../config'; @@ -212,7 +212,7 @@ class App extends Component { return <> <Menu.Item - onClick={() => isConnected ? relay.connect() : relay.disconnect()} + onClick={() => isConnected ? relayAPI.connect() : relayAPI.disconnect()} > <Icon.Group className='menu-icon-group'> <Icon name='plug' color={isConnected ? 'green' : isTransitioning ? 'yellow' : 'grey'}/> @@ -288,6 +288,7 @@ class App extends Component { <System {...props} state={applicationState} options={applicationOptions} /> ) }/> + <Redirect from='*' to={`${urlBase}/searches`}/> </>; } }; |
