Skip to content

Commit 2747d55

Browse files
authored
Merge branch 'develop' into feature/getFromLocalStorageOrApi
2 parents f9c0bde + 1c60f1f commit 2747d55

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

.gitpod.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM gitpod/workspace-full:latest
2+
3+
RUN bash -c ". .nvm/nvm.sh && nvm install 10 && nvm use 10 && nvm alias default 10"
4+
5+
RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix

.gitpod.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
image:
2+
file: .gitpod.Dockerfile
3+
tasks:
4+
- command: gp await-port 3000 && sleep 3 && gp preview $(gp url 3000)/src/index.html
5+
- init: npm install -g eslint bower && npm install
6+
command: npm start
7+
ports:
8+
- port: 3000
9+
onOpen: ignore

src/data/qmStates.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ var qmStates = [
144144
"variableSearchParameters": {
145145
"limit": 100,
146146
"includePublic": true,
147-
"manualTracking": true
147+
// Don't do this or blood pressure doesn't show up. Plus we just put manualTracking at the top anyway. "manualTracking": true
148148
},
149149
"hideNavigationMenu": null,
150150
"doneState": null,
@@ -174,7 +174,7 @@ var qmStates = [
174174
"variableSearchParameters": {
175175
"limit": 100,
176176
"includePublic": true,
177-
"manualTracking": true
177+
// Don't do this or blood pressure doesn't show up. Plus we just put manualTracking at the top anyway. "manualTracking": true
178178
},
179179
"hideNavigationMenu": null,
180180
"skipReminderSettingsIfPossible": null,
@@ -206,7 +206,7 @@ var qmStates = [
206206
"variableSearchParameters": {
207207
"limit": 100,
208208
"includePublic": true,
209-
"manualTracking": true
209+
// Don't do this or blood pressure doesn't show up. Plus we just put manualTracking at the top anyway. "manualTracking": true
210210
},
211211
"hideNavigationMenu": null,
212212
"doneState": null,

src/js/controllers/measurementAddCtrl.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,9 @@ angular.module('starter').controller('MeasurementAddCtrl', [
286286
setupUnit(category.defaultUnitAbbreviatedName, v.valence);
287287
}
288288
var m = qm.measurements.newMeasurement(v);
289-
if(m.variableName.toLowerCase().indexOf('blood pressure') > -1){$rootScope.bloodPressure.show = true;}
289+
if(m.variableName.toLowerCase().indexOf('blood pressure') > -1){
290+
qmService.rootScope.setProperty('bloodPressure', {systolicValue: null, diastolicValue: null, show: true});
291+
}
290292
if(m.variableCategoryName){
291293
setupVariableCategory(m.variableCategoryName);
292294
}else{

0 commit comments

Comments
 (0)