Skip to content

Commit

Permalink
Add derived columns to program setup
Browse files Browse the repository at this point in the history
  • Loading branch information
haneslinger committed Nov 22, 2024
1 parent dc590dc commit 4823d49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seed/static/seed/js/controllers/program_setup_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ angular.module('SEED.controller.program_setup', []).controller('program_setup_co
$scope.valid_column_data_types = ['number', 'float', 'integer', 'ghg', 'ghg_intensity', 'area', 'eui', 'boolean'];
$scope.valid_x_axis_data_types = ['number', 'string', 'float', 'integer', 'ghg', 'ghg_intensity', 'area', 'eui', 'boolean'];

$scope.property_columns = _.reject(property_columns, (item) => item.related || !$scope.valid_column_data_types.includes(item.data_type)).sort((a, b) => naturalSort(a.displayName, b.displayName));
$scope.x_axis_columns = _.reject(property_columns, (item) => item.related || !$scope.valid_x_axis_data_types.includes(item.data_type)).sort((a, b) => naturalSort(a.displayName, b.displayName));
$scope.property_columns = _.reject(property_columns, (item) => (item.related || !$scope.valid_column_data_types.includes(item.data_type)) && item.derived_column == null).sort((a, b) => naturalSort(a.displayName, b.displayName));

Check warning on line 47 in seed/static/seed/js/controllers/program_setup_controller.js

View workflow job for this annotation

GitHub Actions / formatting (lint)

This line has a length of 232. Maximum allowed is 200
$scope.x_axis_columns = _.reject(property_columns, (item) => (item.related || !$scope.valid_x_axis_data_types.includes(item.data_type)) && item.derived_column == null).sort((a, b) => naturalSort(a.displayName, b.displayName));

Check warning on line 48 in seed/static/seed/js/controllers/program_setup_controller.js

View workflow job for this annotation

GitHub Actions / formatting (lint)

This line has a length of 230. Maximum allowed is 200
$scope.x_axis_selection = '';
$scope.cycle_selection = '';
$scope.compliance_metrics_error = [];
Expand Down

0 comments on commit 4823d49

Please sign in to comment.