GUAC-1126: Move menu actions into own class. Make rendering of menu actions generic.
This commit is contained in:
1 parent
b7147801ce
commit
69374f0818
3 files changed
+119
-33
No files matched your search
@@ -36,18 +36,10 @@
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<!-- Change password -->
|
||||
<li>
|
||||
<a class="change-password" ng-click="showPasswordUpdate()"
|
||||
ng-show="canChangePassword">
|
||||
{{'USER_MENU.ACTION_CHANGE_PASSWORD' | translate}}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<!-- Logout -->
|
||||
<li>
|
||||
<a class="logout" ng-click="logout()">
|
||||
{{'USER_MENU.ACTION_LOGOUT' | translate}}
|
||||
<!-- Actions -->
|
||||
<li ng-repeat="action in actions">
|
||||
<a ng-class="action.className" ng-click="action.callback()">
|
||||
{{action.name | translate}}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
Reference in new issue
Block a user