Skip to content

Commit

Permalink
Merge pull request #2337 from Gizra/develop
Browse files Browse the repository at this point in the history
Development [starting 09.03.21]
  • Loading branch information
anvmn authored Mar 11, 2021
2 parents 67d8789 + a4a2b05 commit ac942cd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions client/src/assets/scss/_dashboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,11 @@
}
}

.dashboards-monthly-chart {
display: flex;
flex-direction: column;
}

.fbf-beneficiaries {

.header {
Expand Down
1 change: 1 addition & 0 deletions client/src/assets/scss/_new.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
&.icon-open-book {
background: url(#{$img-path}icon-open-book.svg) center center no-repeat;
background-size: 36px 36px;
padding: 0 10px;
margin-right: 10px;
height: 36px;
width: 52px;
Expand Down
4 changes: 2 additions & 2 deletions client/src/elm/Pages/Dashboard/View.elm
Original file line number Diff line number Diff line change
Expand Up @@ -529,14 +529,14 @@ generateCaseNutritionNewCases currentDate caseNutrition =
(\( month, nutritionValue ) ( _, previousNutritionValue ) ->
case nutritionValue.class of
Backend.Dashboard.Model.Moderate ->
if previousNutritionValue.class == Backend.Dashboard.Model.Moderate then
if previousNutritionValue.class /= Backend.Dashboard.Model.Moderate then
( month, Backend.Dashboard.Model.Nutrition 0 1 )

else
( month, Backend.Dashboard.Model.Nutrition 0 0 )

Backend.Dashboard.Model.Severe ->
if previousNutritionValue.class == Backend.Dashboard.Model.Severe then
if previousNutritionValue.class /= Backend.Dashboard.Model.Severe then
( month, Backend.Dashboard.Model.Nutrition 1 0 )

else
Expand Down

0 comments on commit ac942cd

Please sign in to comment.