Skip to content

Commit

Permalink
Revert unncessary changes introduced by the enketo code
Browse files Browse the repository at this point in the history
The previous implementation treated the enketo code as another type of survey.
However the enketo survey is different than the multi-label UI.
We have now separated out the functionality into separate directives, and removed all
references to the ConfirmHelper in the diary code

The eneketo survey is a single array entry with key "SURVEY", and is stored in the directive.
In the diary, deployers can choose between the multi-ui and enketo implementations
e-mission/e-mission-docs#727 (comment)
  • Loading branch information
shankari committed May 10, 2022
1 parent d30ab76 commit 5a362c5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions www/js/survey/multilabel/trip-confirm-services.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
angular.module('emission.survey.multilabel.services', ['ionic', 'emission.i18n.utils', "emission.plugin.logger"])
.factory("ConfirmHelper", function($http, $ionicPopup, $translate, i18nUtils, Logger) {
var ch = {};
// ch.INPUTS = ["MODE", "PURPOSE"]
ch.INPUTS = ["SURVEY"];
ch.INPUTS = ["MODE", "PURPOSE"]
ch.inputDetails = {
"MODE": {
labeltext: $translate.instant(".mode"),
Expand All @@ -17,13 +16,6 @@ angular.module('emission.survey.multilabel.services', ['ionic', 'emission.i18n.u
width: "col-50",
key: "manual/purpose_confirm",
otherVals: {},
},
"SURVEY": {
labeltext: $translate.instant(".survey"),
choosetext: $translate.instant(".choose-survey"),
width: "col",
key: "manual/survey_response",
otherVals: {},
}
}

Expand Down

0 comments on commit 5a362c5

Please sign in to comment.