Commit 8c64e8df authored by Maciej Lenartowicz's avatar Maciej Lenartowicz

Merge branch 'submenu' into 'master'

Changed menu position and description.

See merge request !5
parents 1c72bea8 e3c8428d
Pipeline #58945 passed with stage
in 5 minutes and 27 seconds
{
"name": "reforis_remote_devices",
"version": "1.0.0",
"version": "1.1.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......
......@@ -2,7 +2,7 @@
"name": "reforis_remote_devices",
"author": "CZ.NIC, z.s.p.o.",
"license": "GPL-3.0",
"version": "1.0.0",
"version": "1.1.0",
"description": "",
"main": "./src/app.js",
"dependencies": {
......
......@@ -11,8 +11,15 @@ const RemoteDevicesPlugin = {
name: _("Remote Devices"),
weight: 100,
path: "/remote-devices",
component: RemoteDevices,
submenuId: "remote-devices",
icon: "server",
pages: [
{
name: "Devices List",
path: "/devices-list",
component: RemoteDevices,
},
],
};
ForisPlugins.push(RemoteDevicesPlugin);
......@@ -18,7 +18,7 @@ RemoteDevices.propTypes = {
export default function RemoteDevices({ ws }) {
return (
<>
<h1>{_("Remote Devices")}</h1>
<h1>{_("Devices List")}</h1>
<p>{_("You can set up other Turris routers to be managed remotely by this device.")}</p>
<p>{_("To authorize your router you will need a token which can be obtained with \"Remote Access\" plugin on target device.")}</p>
<AddDeviceForm />
......
......@@ -3,7 +3,7 @@
exports[`<RemoteDevices /> should render component 1`] = `
<div>
<h1>
Remote Devices
Devices List
</h1>
<p>
You can set up other Turris routers to be managed remotely by this device.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment