diff --git a/front/src/config/i18n/en.json b/front/src/config/i18n/en.json index 6282434822..1bf5a2c078 100644 --- a/front/src/config/i18n/en.json +++ b/front/src/config/i18n/en.json @@ -446,6 +446,7 @@ "description": "Control Philips Hue Lights and plugs with the official hub", "deviceTab": "Devices", "setupTab": "Setup Bridges", + "documentation": "Documentation", "setup": { "connectedBridgesTitle": "Connected bridges", "disconnectButton": "Disconnect", diff --git a/front/src/config/i18n/fr.json b/front/src/config/i18n/fr.json index fb67ba7731..042b1b357c 100644 --- a/front/src/config/i18n/fr.json +++ b/front/src/config/i18n/fr.json @@ -572,6 +572,7 @@ "description": "Contrôler les lumières Philips Hue.", "deviceTab": "Appareils", "setupTab": "Configuration des Ponts", + "documentation": "Documentation", "setup": { "connectedBridgesTitle": "Ponts connectés", "disconnectButton": "Déconnexion", diff --git a/front/src/routes/integration/all/philips-hue/PhilipsHuePage.jsx b/front/src/routes/integration/all/philips-hue/PhilipsHuePage.jsx index 46ad5cac75..5f5dfa9498 100644 --- a/front/src/routes/integration/all/philips-hue/PhilipsHuePage.jsx +++ b/front/src/routes/integration/all/philips-hue/PhilipsHuePage.jsx @@ -1,7 +1,8 @@ import { Text } from 'preact-i18n'; import { Link } from 'preact-router/match'; +import DeviceConfigurationLink from '../../../../components/documentation/DeviceConfigurationLink'; -const PhilipsHuePage = ({ children }) => ( +const PhilipsHuePage = ({ children, user }) => (
@@ -34,6 +35,17 @@ const PhilipsHuePage = ({ children }) => ( + + + + + + +
diff --git a/front/src/routes/integration/all/philips-hue/device-page/index.js b/front/src/routes/integration/all/philips-hue/device-page/index.js index 0e8d7f0c93..61116b77e0 100644 --- a/front/src/routes/integration/all/philips-hue/device-page/index.js +++ b/front/src/routes/integration/all/philips-hue/device-page/index.js @@ -15,7 +15,7 @@ class PhilipsHueDevicePage extends Component { render(props, {}) { return ( - + {props.philipsHueDevices && props.philipsHueDevices.length ? :
}