Skip to content

Commit

Permalink
Renamed model to fix tests #3369
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Dec 9, 2024
1 parent 3e9cb29 commit be014dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion grails-app/assets/javascripts/organisation.js
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ OrganisationPageViewModel = function (props, options) {
self.allTargetMeasures = _.sortBy(self.allTargetMeasures, 'label');
var propDetails = props && props.custom && props.custom.details || {};
self.selectedTargetMeasures = ko.observableArray();
var details = new DetailsViewModel(propDetails, props, self.periods, self.allTargetMeasures, options);
var details = new OrganisationDetailsViewModel(propDetails, props, self.periods, self.allTargetMeasures, options);
updatedTargetMeasures(details);
self.reportingTargets = ko.observable(details);
self.isProjectDetailsLocked = ko.observable(false);
Expand Down
6 changes: 3 additions & 3 deletions grails-app/assets/javascripts/services.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
function DetailsViewModel(o, organisation, budgetHeaders, allServices, config) {
function OrganisationDetailsViewModel(o, organisation, budgetHeaders, allServices, config) {
var self = this;
var period = budgetHeaders,
serviceIds = o.services && o.services.serviceIds || [],
targets = o.services && o.services.targets || [];
self.services = new ServicesViewModel(serviceIds, config.services, targets, budgetHeaders);
self.services = new OrganisationServicesViewModel(serviceIds, config.services, targets, budgetHeaders);
function clearHiddenFields(jsData) {

};
Expand Down Expand Up @@ -33,7 +33,7 @@ function DetailsViewModel(o, organisation, budgetHeaders, allServices, config) {
* @param outputTargets The current organisation targets
* @param periods An array of periods, each of which require a target to be set
*/
function ServicesViewModel(serviceIds, allServices, outputTargets, periods) {
function OrganisationServicesViewModel(serviceIds, allServices, outputTargets, periods) {
var self = this,
OPERATION_SUM = "SUM",
OPERATION_AVG = "AVG",
Expand Down

0 comments on commit be014dd

Please sign in to comment.