Skip to content

Commit

Permalink
Merge pull request #298 from brmodeloweb/improve-user-menu
Browse files Browse the repository at this point in the history
  • Loading branch information
idmarjr authored Dec 18, 2021
2 parents 4401495 + 20b8524 commit f2d867c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/angular/components/dropdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<button class="btn ng-binding">{{$ctrl.selected.name}}</button>
</div>
<ul class="dropdown-tmp-list" style="min-width: 140px;">
<li ng-repeat="option in $ctrl.options" class="dropdown-tmp-item" ng-click="$ctrl.select(option)"><span>{{option.name}}</span></li>
<li class="dropdown-tmp-item" ng-repeat="option in $ctrl.options" ng-click="$ctrl.select(option)"><span>{{option.name}}</span></li>
</ul>
</div>
29 changes: 25 additions & 4 deletions app/angular/components/dropdownIcon.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,31 @@
<div class="dropdown" ng-class="{open: $ctrl.open}">
<button ng-click="$ctrl.toggle(!$ctrl.open)" data-cy="gear-button">
<i class="fa fa-cog"></i>
<button ng-click="$ctrl.toggle(!$ctrl.open)" data-cy="gear-button" title="">
<i class="fa fa-user-circle"></i>
</button>
<ul class="dropdown-menu dropdown-menu-right">
<li ng-repeat="option in $ctrl.options" ng-click="$ctrl.select(option)">
<a>{{option.name}}</a>
<li>
<a
target="_blank"
rel="noopener noreferrer"
href="https://github.com/brmodeloweb/brmodelo-app/issues/new?assignees=&labels=Feature+request&template=feature_request.md&title="
>
{{'Request feature' | translate}}
</a>
</li>
<li>
<a
target="_blank"
rel="noopener noreferrer"
href="https://github.com/brmodeloweb/brmodelo-app/issues/new?assignees=&labels=&template=bug_report.md&title="
>
{{'Report bug' | translate}}
</a>
</li>
<li role="separator" class="divider"></li>
<li title="" ng-repeat="option in $ctrl.options" ng-click="$ctrl.select(option)">
<a>
{{option.name}}
</a>
</li>
</ul>
</div>
3 changes: 3 additions & 0 deletions app/i18n/languages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ export default {
'You have unsaved changes. Are you sure you want to exit without saving?': 'You have unsaved changes. Are you sure you want to exit without saving?',
'Exit without saving': 'Exit without saving',
'Name': 'Name',
'Documentation': 'Documentation',
'Request feature': 'Request feature',
'Report bug': 'Report bug',
'Import model': 'Import model',
'File': 'File',
'Import': 'Import',
Expand Down
3 changes: 3 additions & 0 deletions app/i18n/languages/pt_BR.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ export default {
'You have unsaved changes. Are you sure you want to exit without saving?': 'Você tem alterações não salvas. Tem certeza que deseja sair sem salvar?',
'Exit without saving': 'Sair sem salvar',
'Name': 'Nome',
'Documentation': 'Documentação',
'Request feature': 'Requisitar funcionalidade',
'Report bug': 'Reportar problema',
'Import model': 'Importar modelo',
'File': 'Arquivo',
'Import': 'Importar',
Expand Down

0 comments on commit f2d867c

Please sign in to comment.