config-editor-base 3.0.6 → 3.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24079,16 +24079,24 @@ var FilterBuilderTool = /*#__PURE__*/function (_React$Component) {
24079
24079
  var fileList = dbcData.filesWithoutPrefix.join(', ');
24080
24080
  this.props.showAlert("warning", "No valid CAN channel prefix found for: " + fileList + ". Specify the relevant channel via e.g. \"can1-\", \"can2-\" prefixes in the DBC file names.");
24081
24081
  }
24082
+ var validFileNames = dbcData.parsedFiles.filter(function (f) {
24083
+ return f.hasValidPrefix;
24084
+ }).map(function (f) {
24085
+ return f.filename;
24086
+ });
24082
24087
  this.setState({
24083
24088
  dbcData: dbcData,
24089
+ dbcFileNames: validFileNames,
24084
24090
  isLoading: false
24085
24091
  }, function () {
24086
24092
  _this5.mergeData();
24087
24093
  });
24088
- var validFiles = dbcData.parsedFiles.filter(function (f) {
24089
- return f.hasValidPrefix;
24090
- }).length;
24091
- this.props.showAlert("success", "Loaded " + validFiles + " DBC file(s) with valid prefix");
24094
+ var validFiles = validFileNames.length;
24095
+ if (validFiles === 0) {
24096
+ this.props.showAlert("warning", "Loaded 0 DBC file(s) with valid prefix - add a prefix such as 'can1-' or 'can2-' in order to use the DBC");
24097
+ } else {
24098
+ this.props.showAlert("success", "Loaded " + validFiles + " DBC file(s) with valid prefix");
24099
+ }
24092
24100
  } catch (e) {
24093
24101
  this.props.showAlert("danger", "Error parsing DBC files: " + e.message);
24094
24102
  this.setState({