Skip to content

Commit a565345

Browse files
committed
Fix router
1 parent ab35560 commit a565345

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/background/Gateway.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function makeStatus() {
1717
}
1818

1919
function setup() {
20-
const cacheDir = path.join(app.getPath("userData"), "cache");
20+
const cacheDir = path.join(app.getPath("userData"), "gateway");
2121

2222
ipcMain.on("gateway/connect", (event, device) => {
2323
console.log("on gateway:connect", device);

src/render/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default class extends Component {
9292
<aside className={this.state.visible ? "fade-in" : "fade-out"}>
9393
<nav>
9494
{/* <NavLink exact to="/">{i18n.__("home")}</NavLink> */}
95-
<NavLink to="/" title={gwOffline ? "No Radio Dongle connected" : null}>{i18n.__("Devices")} {gwOffline ? <i className="fa fa-warning"></i> : null}</NavLink>
95+
<NavLink to="/" exact title={gwOffline ? "No Radio Dongle connected" : null}>{i18n.__("Devices")} {gwOffline ? <i className="fa fa-warning"></i> : null}</NavLink>
9696
<NavLink to="/functions" title={nodeRedOffline ? "Node-RED is shut down": null}>{i18n.__("Functions")} {nodeRedOffline ? <i className="fa fa-warning"></i> : null}</NavLink>
9797
<NavLink to="/dashboard">{i18n.__("dashboard")}</NavLink>
9898
<NavLink to="/messages" title={mqttOffline ? "Mqtt brouker is shut down" : null}>{i18n.__("Messages")} {mqttOffline ?<i className="fa fa-warning"></i> : null}</NavLink>
@@ -113,7 +113,7 @@ export default class extends Component {
113113
<main key="main">
114114
{/* <Home path="/" exact/> */}
115115
<Route path="/settings" component={Settings}/>
116-
<RouteWithProps path="/" component={Devices} model={this.radiomanager} />
116+
<RouteWithProps path="/" exact component={Devices} model={this.radiomanager} />
117117
<RouteIframe path="/functions" src="http://127.0.0.1:1880/" id="node-red" />
118118
<RouteIframe path="/dashboard" src="http://127.0.0.1:1880/ui" />
119119
<RouteWithProps path="/messages" component={MqttLog} model={this.mqttlog}/>

0 commit comments

Comments
 (0)