diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile new file mode 100644 index 0000000000..1182d2f426 --- /dev/null +++ b/.gitpod.Dockerfile @@ -0,0 +1,5 @@ +FROM gitpod/workspace-full:latest + +RUN bash -c ". .nvm/nvm.sh && nvm install 10 && nvm use 10 && nvm alias default 10" + +RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix \ No newline at end of file diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000000..cf8ee5eab2 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,9 @@ +image: + file: .gitpod.Dockerfile +tasks: + - command: gp await-port 3000 && sleep 3 && gp preview $(gp url 3000)/src/index.html + - init: npm install -g eslint bower && npm install + command: npm start +ports: + - port: 3000 + onOpen: ignore diff --git a/src/data/qmStates.js b/src/data/qmStates.js index ecfa60e086..7f8c28422c 100644 --- a/src/data/qmStates.js +++ b/src/data/qmStates.js @@ -144,7 +144,7 @@ var qmStates = [ "variableSearchParameters": { "limit": 100, "includePublic": true, - "manualTracking": true + // Don't do this or blood pressure doesn't show up. Plus we just put manualTracking at the top anyway. "manualTracking": true }, "hideNavigationMenu": null, "doneState": null, @@ -174,7 +174,7 @@ var qmStates = [ "variableSearchParameters": { "limit": 100, "includePublic": true, - "manualTracking": true + // Don't do this or blood pressure doesn't show up. Plus we just put manualTracking at the top anyway. "manualTracking": true }, "hideNavigationMenu": null, "skipReminderSettingsIfPossible": null, @@ -206,7 +206,7 @@ var qmStates = [ "variableSearchParameters": { "limit": 100, "includePublic": true, - "manualTracking": true + // Don't do this or blood pressure doesn't show up. Plus we just put manualTracking at the top anyway. "manualTracking": true }, "hideNavigationMenu": null, "doneState": null, diff --git a/src/js/controllers/measurementAddCtrl.js b/src/js/controllers/measurementAddCtrl.js index 074ae02c7a..d656d4a9b0 100644 --- a/src/js/controllers/measurementAddCtrl.js +++ b/src/js/controllers/measurementAddCtrl.js @@ -286,7 +286,9 @@ angular.module('starter').controller('MeasurementAddCtrl', [ setupUnit(category.defaultUnitAbbreviatedName, v.valence); } var m = qm.measurements.newMeasurement(v); - if(m.variableName.toLowerCase().indexOf('blood pressure') > -1){$rootScope.bloodPressure.show = true;} + if(m.variableName.toLowerCase().indexOf('blood pressure') > -1){ + qmService.rootScope.setProperty('bloodPressure', {systolicValue: null, diastolicValue: null, show: true}); + } if(m.variableCategoryName){ setupVariableCategory(m.variableCategoryName); }else{