aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--web/app/view/ReportController.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/app/view/ReportController.js b/web/app/view/ReportController.js
index 6f998396c..8f2b9b871 100644
--- a/web/app/view/ReportController.js
+++ b/web/app/view/ReportController.js
@@ -61,10 +61,11 @@ Ext.define('Traccar.view.ReportController', {
},
updateButtons: function () {
- var reportType, disabled, devices;
+ var reportType, disabled, devices, time;
reportType = this.lookupReference('reportTypeField').getValue();
devices = this.deviceId && this.deviceId.length !== 0 || this.groupId && this.groupId.length !== 0;
- disabled = !reportType || !devices;
+ time = this.fromDate && this.fromTime && this.toDate && this.toTime;
+ disabled = !reportType || !devices || !time;
this.lookupReference('showButton').setDisabled(disabled);
this.lookupReference('csvButton').setDisabled(disabled);
},