Skip to content

Commit

Permalink
fix: use translated name in title DHIS2-13015 (#2017)
Browse files Browse the repository at this point in the history
* fix: use translated name in title DHIS2-13015

* fix: bump analytics to fix visualization search
  • Loading branch information
edoardo authored and janhenrikoverland committed Apr 5, 2022
1 parent 30e94e0 commit 465ef92
Show file tree
Hide file tree
Showing 4 changed files with 252 additions and 98 deletions.
2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"redux-mock-store": "^1.5.4"
},
"dependencies": {
"@dhis2/analytics": "^21.1.1",
"@dhis2/analytics": "^21.5.2",
"@dhis2/app-runtime": "^3.2.0",
"@dhis2/app-runtime-adapter-d2": "^1.1.0",
"@dhis2/d2-i18n": "^1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/components/TitleBar/TitleBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const getTitleText = (titleState, visualization) => {
return getTitleUnsaved()
case STATE_SAVED:
case STATE_DIRTY:
return visualization.name
return visualization.displayName || visualization.name
default:
return ''
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"access": "public"
},
"dependencies": {
"@dhis2/analytics": "^21.1.1",
"@dhis2/analytics": "^21.5.2",
"@dhis2/app-runtime": "^3.2.0",
"@dhis2/d2-i18n": "^1.1.0",
"@dhis2/ui": "^7.7.3",
Expand Down
Loading

0 comments on commit 465ef92

Please sign in to comment.