Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add device attribute to disable forwarding of events for device #1246

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/common/attributes/useDeviceAttributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,12 @@ export default (t) => useMemo(() => ({
name: t('attributeDeviceInactivityPeriod'),
type: 'number',
},
deviceAllowPositionForwarding: {
name: t('attributeDeviceAllowPositionForwarding'),
type: 'boolean',
},
deviceAllowEventForwarding: {
mivtdole marked this conversation as resolved.
Show resolved Hide resolved
name: t('attributeDeviceAllowEventForwarding'),
type: 'boolean',
},
}), [t]);
2 changes: 2 additions & 0 deletions src/resources/l10n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@
"attributeDeviceImage": "Device Image",
"attributeDeviceInactivityStart": "Device Inactivity Start",
"attributeDeviceInactivityPeriod": "Device Inactivity Period",
"attributeDeviceAllowPositionForwarding": "Forward Device Positions",
"attributeDeviceAllowEventForwarding": "Forward Device Events",
Comment on lines +134 to +135
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename it here as well. And the test should probably match.

"attributeProcessingCopyAttributes": "Processing: Copy Attributes",
"attributeColor": "Color",
"attributeWebLiveRouteLength": "Web: Live Route Length",
Expand Down
2 changes: 2 additions & 0 deletions src/resources/l10n/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@
"attributeDeviceImage": "Apparaatafbeelding",
"attributeDeviceInactivityStart": "Start van inactiviteit",
"attributeDeviceInactivityPeriod": "Inactiviteitperiode",
"attributeDeviceAllowPositionForwarding": "Stuur posities voor device door",
"attributeDeviceAllowEventForwarding": "Stuur events voor device door",
"attributeProcessingCopyAttributes": "Verwerking: kopieer attributen",
"attributeColor": "Kleur",
"attributeWebLiveRouteLength": "Web: live routelengte",
Expand Down