public/js/models/variableList.js in conjur-asset-ui-1.3.1 vs public/js/models/variableList.js in conjur-asset-ui-1.3.2
- old
+ new
@@ -1,27 +1,16 @@
-/* global conjur */
-
(function(conjur) {
'use strict';
- this.VariableList = function() {
+ conjur.models.VariableList = function() {
var options = {
- namespaceSelector: function(member) {
- var idTokens = member.id.split('@');
-
- if (idTokens.length > 1) {
- return idTokens.slice(1, idTokens.length-1).join['@'];
- } else {
- return null;
- }
+ filter: function(member) {
+ var idTokens = member.id.split(':');
+ var id = idTokens[idTokens.length-1];
+ return id.split('/').length > 1;
}
};
- var list = conjur.models.ResourceList('variable', options);
-
- return list;
+ return conjur.models.ResourceList('variable', options);
};
-}).bind(conjur.models)
-(
- conjur
-);
+})(conjur);