diff --git a/public/locales/en/translations.json b/public/locales/en/translations.json index 2375043df..8a6453b39 100644 --- a/public/locales/en/translations.json +++ b/public/locales/en/translations.json @@ -206,12 +206,12 @@ }, "methods": { "title": "Methods", - "description": "All methods available for device", + "description": "To run a method on one or more devices, close this pane, select the checkbox for the device(s), click <1><0>{{jobs}}, and then select <3><0>{{methods}}.", "noneExist": "No methods found for this device." }, "properties": { "title": "Properties", - "description": "Selected properties on device", + "description": "To change a property on one or more devices, close this pane, select the checkbox for the device(s), click <1><0>{{jobs}}, and then select <3><0>{{properties}}.", "keyHeader": "Property", "valueHeader": "Value", "noneExist": "No properties found for this device.", @@ -221,7 +221,7 @@ }, "tags": { "title": "Tags", - "description": "Tags applied to device", + "description": "To add, delete, or change a tag on one or more devices, close this pane, select the checkbox for the device(s), click <1><0>{{jobs}}, and then select <3><0>{{tags}}.", "keyHeader": "Key", "valueHeader": "Value", "noneExist": "No tags found for this device." @@ -265,7 +265,7 @@ "required": "Is required" }, "tags": { - "radioLabel": "Tag", + "radioLabel": "Tags", "title": "Tags on selected devices", "description": "Tags in common on selected devices", "keyHeader": "Key", @@ -277,8 +277,8 @@ "add": "Add tag" }, "methods": { - "radioLabel": "Run method", - "title": "Run method", + "radioLabel": "Methods", + "title": "Run method on selected devices", "description": "All available methods for device or group of devices", "methodName": "Method name", "methodNameHint": "Select method", @@ -288,8 +288,8 @@ "firmwareUriHint": "Enter firmware URI value" }, "properties": { - "radioLabel": "Reconfigure", - "title": "Reconfigure", + "radioLabel": "Properties", + "title": "Properties on selected devices", "description": "Available properties and values to change", "keyHeader": "Property", "valueHeader": "Value", diff --git a/src/components/pages/devices/flyouts/deviceDetails/deviceDetails.js b/src/components/pages/devices/flyouts/deviceDetails/deviceDetails.js index a68f843f6..1b7bd344e 100644 --- a/src/components/pages/devices/flyouts/deviceDetails/deviceDetails.js +++ b/src/components/pages/devices/flyouts/deviceDetails/deviceDetails.js @@ -1,6 +1,7 @@ // Copyright (c) Microsoft. All rights reserved. import React, { Component } from 'react'; +import { Trans } from 'react-i18next'; import { Subject } from 'rxjs'; import moment from 'moment'; import { DEFAULT_TIME_FORMAT } from 'components/shared/pcsGrid/pcsGridConfig'; @@ -230,7 +231,14 @@ export class DeviceDetails extends Component { {t('devices.flyouts.details.tags.title')} - {t('devices.flyouts.details.tags.description')} + + + To edit, close this panel, click on + {{ jobs: t('devices.flyouts.jobs.title') }} + then select + {{ tags: t('devices.flyouts.jobs.tags.radioLabel') }}. + + { (tags.length === 0) && t('devices.flyouts.details.tags.noneExist') @@ -262,7 +270,14 @@ export class DeviceDetails extends Component { {t('devices.flyouts.details.methods.title')} - {t('devices.flyouts.details.methods.description')} + + + To edit, close this panel, click on + {{ jobs: t('devices.flyouts.jobs.title') }} + then select + {{ methods: t('devices.flyouts.jobs.methods.radioLabel') }}. + + { (device.methods.length === 0) ? t('devices.flyouts.details.methods.noneExist') @@ -283,7 +298,14 @@ export class DeviceDetails extends Component { {t('devices.flyouts.details.properties.title')} - {t('devices.flyouts.details.properties.description')} + + + To edit, close this panel, click on + {{ jobs: t('devices.flyouts.jobs.title') }} + then select + {{ properties: t('devices.flyouts.jobs.properties.radioLabel') }}. + + { (properties.length === 0) && t('devices.flyouts.details.properties.noneExist') diff --git a/src/components/pages/maintenance/summary/summary.js b/src/components/pages/maintenance/summary/summary.js index e1d9e4445..4119cfb6d 100644 --- a/src/components/pages/maintenance/summary/summary.js +++ b/src/components/pages/maintenance/summary/summary.js @@ -56,11 +56,11 @@ export const Summary = ({ - + diff --git a/src/components/pages/rules/flyouts/ruleEditor/ruleEditor.js b/src/components/pages/rules/flyouts/ruleEditor/ruleEditor.js index 404ab0628..0e703aa32 100644 --- a/src/components/pages/rules/flyouts/ruleEditor/ruleEditor.js +++ b/src/components/pages/rules/flyouts/ruleEditor/ruleEditor.js @@ -370,12 +370,6 @@ export class RuleEditor extends LinkedComponent { { !fieldQueryPending &&
- - {t('rules.flyouts.ruleEditor.conditions')} - - {t('rules.flyouts.ruleEditor.addCondition')} - - { conditionLinks.map((condition, idx) => ( @@ -421,6 +415,12 @@ export class RuleEditor extends LinkedComponent { )) } + + {t('rules.flyouts.ruleEditor.conditions')} + + {t('rules.flyouts.ruleEditor.addCondition')} + + diff --git a/src/walkthrough/components/pages/dashboard/dashboard.js b/src/walkthrough/components/pages/dashboard/dashboard.js index 7b333e650..04954d81f 100644 --- a/src/walkthrough/components/pages/dashboard/dashboard.js +++ b/src/walkthrough/components/pages/dashboard/dashboard.js @@ -5,7 +5,7 @@ import React, { Component } from 'react'; import { Grid, Cell } from 'components/pages/dashboard/grid'; import { ExamplePanel } from './panels'; -import { ComponentArray, ContextMenu, PageContent } from 'components/shared'; +import { ContextMenu, PageContent } from 'components/shared'; import './dashboard.css'; @@ -22,37 +22,35 @@ export class Dashboard extends Component { render() { const { t } = this.props; - return ( - - - {/** Add context buttons here... as needed for your dashboard. In this example, there are none. */} - - - - - - - - - - - - - - - - - - - - - - - - - - - - ); + return [ + + {/** Add context buttons here... as needed for your dashboard. In this example, there are none. */} + , + + + + + + + + + + + + + + + + + + + + + + + + + + ]; } }