Skip to content

Commit

Permalink
Renames mobile-survey-manager.js view model to mobile-survey.js view …
Browse files Browse the repository at this point in the history
…model. re #4357
  • Loading branch information
chiatt committed Dec 18, 2018
1 parent f921909 commit 76a2f32
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions arches/app/media/js/views/mobile-survey-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ define([
'underscore',
'knockout',
'views/base-manager',
'viewmodels/mobile-survey-manager',
'viewmodels/mobile-survey',
'viewmodels/alert',
'models/mobile-survey',
'mobile-survey-manager-data',
'arches',
'bindings/datepicker'
], function(_, ko, BaseManagerView, MobileSurveyManagerViewModel, AlertViewModel, MobileSurveyModel, data, arches) {
], function(_, ko, BaseManagerView, MobileSurveyViewModel, AlertViewModel, MobileSurveyModel, data, arches) {

var viewModel = new MobileSurveyManagerViewModel(data);
var viewModel = new MobileSurveyViewModel(data);
viewModel.selectedMobileSurvey(new MobileSurveyModel({source: data.mobilesurveys[0], identities: data.identities}));
viewModel.arches = arches;
viewModel.saveMobileSurvey = function() {
Expand Down
6 changes: 3 additions & 3 deletions arches/app/media/js/views/user-profile-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ define([
'knockout',
'knockout-mapping',
'arches',
'viewmodels/mobile-survey-manager',
'viewmodels/mobile-survey',
'views/base-manager',
'profile-manager-data'
], function($, _, ko, koMapping, arches, MobileSurveyManagerViewModel, BaseManagerView, data) {
], function($, _, ko, koMapping, arches, MobileSurveyViewModel, BaseManagerView, data) {

var UserProfileManager = BaseManagerView.extend({
initialize: function(options) {
Expand All @@ -32,7 +32,7 @@ define([
self.viewModel.toggleEditUserForm = function() {
this.showEditUserForm(!this.showEditUserForm());
};
self.viewModel.mobileSurveyManager = new MobileSurveyManagerViewModel(data);
self.viewModel.mobileSurveyManager = new MobileSurveyViewModel(data);

_.each(self.viewModel.mobileSurveyManager.mobilesurveys(), function(mobilesurvey) {
mobilesurvey.resources = ko.computed(function() {
Expand Down

0 comments on commit 76a2f32

Please sign in to comment.