Skip to content

Commit

Permalink
fix: [DHIS2-8660] missing translations (#1022)
Browse files Browse the repository at this point in the history
Co-authored-by: Tony Valle <[email protected]>
  • Loading branch information
superskip and superskip authored Apr 23, 2021
1 parent baf9544 commit 9f428be
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
11 changes: 10 additions & 1 deletion components/dashboard/dashboard-widgets.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@ <h1>{{'select_widgets_to_show'| translate}}</h1>
</td>
<td>

<span ng-if="defaultDashboardWidgetsByTitle[widget.title].canBeUsedAsTopBar"><input type="checkbox" ng-model="widget.useAsTopBar" ng-change="setUseAsTopBar(widget)"/> Use as top bar</span>
<span ng-if="defaultDashboardWidgetsByTitle[widget.title].canBeUsedAsTopBar">
<div ng-style="{display: 'flex', 'align-items': 'center'}">
<div>
<input type="checkbox" ng-model="widget.useAsTopBar" ng-change="setUseAsTopBar(widget)"/>
</div>
<div ng-style="{'margin-left': '4px'}">
{{'use_as_top_bar'| translate}}
</div>
</div>
</span>
</td>
</tr>
</table>
Expand Down
2 changes: 1 addition & 1 deletion components/dashboard/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<ul class="dropdown-menu pull-right" role="menu">
<li><a href ng-click="showHideWidgets()">{{showHideWidgetsLabel}}</a></li>
<li ng-if="userAuthority.canAdministerDashboard"><a href ng-click="saveDashboarLayoutAsDefault()">{{'save_layout_as_default' | translate}}</a></li>
<li><a href ng-click="openTopBarSettings()">Top bar settings</a></li>
<li><a href ng-click="openTopBarSettings()">{{'top_bar_settings' | translate}}</a></li>
<li ng-if="userAuthority.canAdministerDashboard && lockedList && !lockedList[selectedProgram.id]"><a href ng-click="toggleLockDashboard()"><i class="fa fa-lock" aria-hidden="true"></i> {{'lock_default_layout' | translate}}</a></li>
<li ng-if="userAuthority.canAdministerDashboard && lockedList && lockedList[selectedProgram.id]"><a href ng-click="toggleLockDashboard()"><i class="fa fa-unlock" aria-hidden="true"></i> {{'unlock_default_layout' | translate}}</a></li>
</ul>
Expand Down
1 change: 1 addition & 0 deletions i18n/i18n_app.properties
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ top_bar_settings=Top bar settings
show=Show
sort_order=Sort order
activate_top_bar=Activate top bar
use_as_top_bar=Use as top bar
remove_widget=Remove widget?
remove_widget_info=You are about to remove a widget. Do you want to proceed?
lock_default_layout=Lock layout for all users
Expand Down

0 comments on commit 9f428be

Please sign in to comment.