mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 21:51:23 +00:00
GUAC-1407: Only the current data source is relevant when cloning. Do not show the others.
This commit is contained in:
@@ -492,6 +492,10 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto
|
|||||||
if (!linked && readOnly)
|
if (!linked && readOnly)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// Only the selected data source is relevant when cloning
|
||||||
|
if (cloneSourceUsername && dataSource !== selectedDataSource)
|
||||||
|
return;
|
||||||
|
|
||||||
// Determine class name based on read-only / linked status
|
// Determine class name based on read-only / linked status
|
||||||
var className;
|
var className;
|
||||||
if (readOnly) className = 'read-only';
|
if (readOnly) className = 'read-only';
|
||||||
|
Reference in New Issue
Block a user