mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-1120: Toggle visibility of user menu upon click.
This commit is contained in:
@@ -105,6 +105,13 @@ angular.module('userMenu').directive('guacUserMenu', [function guacUserMenu() {
|
|||||||
*/
|
*/
|
||||||
$scope.newPasswordMatch = null;
|
$scope.newPasswordMatch = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether the contents of the user menu are currently shown.
|
||||||
|
*
|
||||||
|
* @type Boolean
|
||||||
|
*/
|
||||||
|
$scope.menuShown = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The username of the current user.
|
* The username of the current user.
|
||||||
*
|
*
|
||||||
@@ -159,6 +166,13 @@ angular.module('userMenu').directive('guacUserMenu', [function guacUserMenu() {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Toggles visibility of the user menu.
|
||||||
|
*/
|
||||||
|
$scope.toggleMenu = function toggleMenu() {
|
||||||
|
$scope.menuShown = !$scope.menuShown;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show the password update dialog.
|
* Show the password update dialog.
|
||||||
*/
|
*/
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<div class="user-menu-dropdown" ng-class="{open: menuShown}">
|
<div class="user-menu-dropdown" ng-class="{open: menuShown}" ng-click="toggleMenu()">
|
||||||
<div class="username">{{username}}</div>
|
<div class="username">{{username}}</div>
|
||||||
|
|
||||||
<!-- Menu options -->
|
<!-- Menu options -->
|
||||||
|
Reference in New Issue
Block a user