mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-1053: Add user preferences page, visible to all users.
This commit is contained in:
@@ -223,6 +223,12 @@ angular.module('navigation').factory('userPageService', ['$injector',
|
||||
));
|
||||
}
|
||||
|
||||
// Add link to user preferences (always accessible)
|
||||
pages.push(new Page(
|
||||
'USER_MENU.ACTION_MANAGE_PREFERENCES',
|
||||
'/settings/preferences'
|
||||
));
|
||||
|
||||
return pages;
|
||||
};
|
||||
|
||||
|
@@ -196,7 +196,8 @@
|
||||
|
||||
.user-menu .options li a[href="#/settings/users"],
|
||||
.user-menu .options li a[href="#/settings/connections"],
|
||||
.user-menu .options li a[href="#/settings/sessions"] {
|
||||
.user-menu .options li a[href="#/settings/sessions"],
|
||||
.user-menu .options li a[href="#/settings/preferences"] {
|
||||
background-image: url('images/action-icons/guac-config-dark.png');
|
||||
}
|
||||
|
||||
|
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright (C) 2015 Glyptodon LLC
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* A directive for managing preferences local to the current user.
|
||||
*/
|
||||
angular.module('settings').directive('guacSettingsPreferences', [function guacSettingsPreferences() {
|
||||
|
||||
return {
|
||||
// Element only
|
||||
restrict: 'E',
|
||||
replace: true,
|
||||
|
||||
scope: {
|
||||
},
|
||||
|
||||
templateUrl: 'app/settings/templates/settingsPreferences.html',
|
||||
controller: ['$scope', '$injector', function settingsPreferencesController($scope, $injector) {
|
||||
|
||||
}]
|
||||
};
|
||||
|
||||
}]);
|
@@ -36,5 +36,6 @@ THE SOFTWARE.
|
||||
<guac-settings-users ng-if="activeTab === 'users'"></guac-settings-users>
|
||||
<guac-settings-connections ng-if="activeTab === 'connections'"></guac-settings-connections>
|
||||
<guac-settings-sessions ng-if="activeTab === 'sessions'"></guac-settings-sessions>
|
||||
<guac-settings-preferences ng-if="activeTab === 'preferences'"></guac-settings-preferences>
|
||||
|
||||
</div>
|
||||
|
@@ -0,0 +1,27 @@
|
||||
<div class="settings section preferences">
|
||||
<!--
|
||||
Copyright 2015 Glyptodon LLC.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
-->
|
||||
|
||||
<!-- User preferences -->
|
||||
<p>TODO</p>
|
||||
|
||||
</div>
|
@@ -11,6 +11,7 @@
|
||||
"ACTION_LOGIN" : "Login",
|
||||
"ACTION_LOGOUT" : "Logout",
|
||||
"ACTION_MANAGE_CONNECTIONS" : "Connections",
|
||||
"ACTION_MANAGE_PREFERENCES" : "Preferences",
|
||||
"ACTION_MANAGE_SETTINGS" : "Settings",
|
||||
"ACTION_MANAGE_SESSIONS" : "Active Sessions",
|
||||
"ACTION_MANAGE_USERS" : "Users",
|
||||
@@ -399,6 +400,10 @@
|
||||
|
||||
},
|
||||
|
||||
"SETTINGS_PREFERENCES" : {
|
||||
|
||||
},
|
||||
|
||||
"SETTINGS_USERS" : {
|
||||
|
||||
"ACTION_ACKNOWLEDGE" : "@:APP.ACTION_ACKNOWLEDGE",
|
||||
@@ -447,6 +452,7 @@
|
||||
"ACTION_CHANGE_PASSWORD" : "@:APP.ACTION_CHANGE_PASSWORD",
|
||||
"ACTION_LOGOUT" : "@:APP.ACTION_LOGOUT",
|
||||
"ACTION_MANAGE_CONNECTIONS" : "@:APP.ACTION_MANAGE_CONNECTIONS",
|
||||
"ACTION_MANAGE_PREFERENCES" : "@:APP.ACTION_MANAGE_PREFERENCES",
|
||||
"ACTION_MANAGE_SESSIONS" : "@:APP.ACTION_MANAGE_SESSIONS",
|
||||
"ACTION_MANAGE_SETTINGS" : "@:APP.ACTION_MANAGE_SETTINGS",
|
||||
"ACTION_MANAGE_USERS" : "@:APP.ACTION_MANAGE_USERS",
|
||||
|
Reference in New Issue
Block a user