mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Merge pull request #315 from glyptodon/hide-irrelevant-tabs
GUAC-1407: Do not show irrelevant account tabs when cloning.
This commit is contained in:
@@ -492,6 +492,10 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto
|
||||
if (!linked && readOnly)
|
||||
return;
|
||||
|
||||
// Only the selected data source is relevant when cloning
|
||||
if (cloneSourceUsername && dataSource !== selectedDataSource)
|
||||
return;
|
||||
|
||||
// Determine class name based on read-only / linked status
|
||||
var className;
|
||||
if (readOnly) className = 'read-only';
|
||||
|
Reference in New Issue
Block a user