GUACAMOLE-220: Allow attributes to be specified via the template supplied to REST object constructors, for consistency's sake.
This commit is contained in:
1 parent
6aaef7685f
commit
7917f46b36
5 files changed
+5
-5
No files matched your search
@@ -84,7 +84,7 @@ angular.module('rest').factory('Connection', [function defineConnection() {
|
|||||||
*
|
*
|
||||||
* @type Object.<String, String>
|
* @type Object.<String, String>
|
||||||
*/
|
*/
|
||||||
this.attributes = {};
|
this.attributes = template.attributes || {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The count of currently active connections using this connection.
|
* The count of currently active connections using this connection.
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ angular.module('rest').factory('ConnectionGroup', [function defineConnectionGrou
|
|||||||
*
|
*
|
||||||
* @type Object.<String, String>
|
* @type Object.<String, String>
|
||||||
*/
|
*/
|
||||||
this.attributes = {};
|
this.attributes = template.attributes || {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The count of currently active connections using this connection
|
* The count of currently active connections using this connection
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ angular.module('rest').factory('SharingProfile', [function defineSharingProfile(
|
|||||||
*
|
*
|
||||||
* @type Object.<String, String>
|
* @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>
|
* @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>
|
* @type Object.<String, String>
|
||||||
*/
|
*/
|
||||||
this.attributes = {};
|
this.attributes = template.attributes || {};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user