Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
42 changes: 40 additions & 2 deletions public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@
"map": "Map",
"max": "Max",
"min": "Min",
"minute": "minute",
"minutes": "minutes",
"miscellaneous": "Miscellaneous",
"mode": "Mode",
"model": "Model",
Expand Down Expand Up @@ -303,7 +305,8 @@
"save": "Save",
"search": "Search",
"seconds": "Seconds",
"select_all": "Show All",
"select_all": "Select All",
"select_none": "Select None",
"select_value": "Select Value",
"sending": "Sending",
"sent_code": "Sent Code!",
Expand Down Expand Up @@ -708,6 +711,23 @@
"update_success": "Entity updated!",
"venues_under_root": "Venues cannot be created directly under the root entity"
},
"export": {
"title": "Export Device Data",
"select_data": "Select the data you want to include in the export:",
"select_at_least_one": "Please select at least one option to export",
"success": "Data exported successfully!",
"error": "Error exporting data",
"device_info_desc": "Serial number, MAC, manufacturer, firmware, etc.",
"configuration_desc": "Current device configuration",
"status_desc": "Connection status, IP address, associations",
"statistics_desc": "Interface metrics, memory usage, VLAN data",
"health_checks_desc": "Device health check history",
"provisioning_desc": "Entity, venue, and subscriber information",
"commands_desc": "Command history (configure, reboot, upgrade, etc.)",
"logs_desc": "Device log entries",
"crashes_desc": "Crash log records",
"reboots_desc": "Reboot log records"
},
"firmware": {
"confirm_default_data": "Please confirm the information below and click 'Confirm' once you are ready to start the process",
"create_success": "Created new default firmware settings!",
Expand Down Expand Up @@ -882,6 +902,10 @@
"device_firmware_upgrade": "Firmware Upgrade",
"device_statistics": "Device Statistics",
"export": "Export",
"export_all": "Export All",
"export_all_title": "Export All Logs",
"export_format": "Export Format",
"export_success": "Successfully exported {{count}} log entries",
"filter": "Filter",
"firmware": "Firmware",
"global_connections": "Global Connections",
Expand All @@ -894,7 +918,21 @@
"thread": "Thread",
"venue_config": "Configuration",
"venue_reboot": "Reboot",
"venue_upgrade": "Upgrade"
"venue_upgrade": "Upgrade",
"websocket_status": "WebSocket Status",
"collection_duration": "Collection Duration",
"collection_started": "Collection Started",
"collection_started_desc": "Collecting logs for {{minutes}} minute(s)",
"collecting_logs": "Collecting logs...",
"logs_collected": "Logs collected",
"logs_will_export": "Logs will be exported as {{format}}",
"start_collection": "Start Collection",
"stay_on_page_info": "Please stay on this page during log collection. Navigating away or refreshing will cancel the collection.",
"stay_on_page_warning": "Do not leave this page or refresh. Collection is in progress.",
"stop_and_export": "Stop & Export",
"no_logs_collected": "No logs were collected during this period",
"no_websockets_connected": "No WebSocket connections available",
"connected_count": "{{count}} of 3 WebSockets connected"
},
"map": {
"auto_align": "Auto Align",
Expand Down
7 changes: 7 additions & 0 deletions src/components/Buttons/DeviceActionDropdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ interface Props {
onOpenScriptModal: (device: GatewayDevice) => void;
onOpenRebootModal: (serialNumber: string) => void;
onOpenReEnrollModal?: (serialNumber: string) => void;
onOpenExportModal?: (serialNumber: string) => void;
size?: 'sm' | 'md' | 'lg';
isCompact?: boolean;
}
Expand All @@ -51,6 +52,7 @@ const DeviceActionDropdown = ({
onOpenScriptModal,
onOpenRebootModal,
onOpenReEnrollModal,
onOpenExportModal,
size,
isCompact,
}: Props) => {
Expand Down Expand Up @@ -250,6 +252,11 @@ const DeviceActionDropdown = ({
<MenuItem onClick={handleOpenScan} hidden={!isCompact || deviceType !== 'ap'}>
{t('commands.wifiscan')}
</MenuItem>
{onOpenExportModal && (
<MenuItem onClick={() => onOpenExportModal(device.serialNumber)}>
{t('export.title')}
</MenuItem>
)}
</MenuList>
</Portal>
</Menu>
Expand Down
Loading