mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-220: Allow attributes to be specified via the template supplied to REST object constructors, for consistency's sake.
This commit is contained in:
@@ -84,7 +84,7 @@ angular.module('rest').factory('Connection', [function defineConnection() {
|
||||
*
|
||||
* @type Object.<String, String>
|
||||
*/
|
||||
this.attributes = {};
|
||||
this.attributes = template.attributes || {};
|
||||
|
||||
/**
|
||||
* The count of currently active connections using this connection.
|
||||
|
@@ -95,7 +95,7 @@ angular.module('rest').factory('ConnectionGroup', [function defineConnectionGrou
|
||||
*
|
||||
* @type Object.<String, String>
|
||||
*/
|
||||
this.attributes = {};
|
||||
this.attributes = template.attributes || {};
|
||||
|
||||
/**
|
||||
* The count of currently active connections using this connection
|
||||
|
@@ -76,7 +76,7 @@ angular.module('rest').factory('SharingProfile', [function defineSharingProfile(
|
||||
*
|
||||
* @type Object.<String, String>
|
||||
*/
|
||||
this.attributes = {};
|
||||
this.attributes = template.attributes || {};
|
||||
|
||||
};
|
||||
|
||||
|
@@ -69,7 +69,7 @@ angular.module('rest').factory('User', [function defineUser() {
|
||||
*
|
||||
* @type Object.<String, String>
|
||||
*/
|
||||
this.attributes = {};
|
||||
this.attributes = template.attributes || {};
|
||||
|
||||
};
|
||||
|
||||
|
@@ -50,7 +50,7 @@ angular.module('rest').factory('UserGroup', [function defineUserGroup() {
|
||||
*
|
||||
* @type Object.<String, String>
|
||||
*/
|
||||
this.attributes = {};
|
||||
this.attributes = template.attributes || {};
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user