Commit daf6c026 by kevalbhatt

ATLAS-1920 : UI : Search using entity and trait attributes - Operators for enum…

ATLAS-1920 : UI : Search using entity and trait attributes - Operators for enum and boolean data type filters.
parent ecd05368
...@@ -64,9 +64,12 @@ define(['require', ...@@ -64,9 +64,12 @@ define(['require',
if (type === "string") { if (type === "string") {
obj.operators = ['=', '!=', 'contains', 'begins_with', 'ends_with']; obj.operators = ['=', '!=', 'contains', 'begins_with', 'ends_with'];
} }
if (type === "enum" || type === "date" || type === "int" || type === "byte" || type === "short" || type === "long" || type === "float" || type === "double") { if (type === "date" || type === "int" || type === "byte" || type === "short" || type === "long" || type === "float" || type === "double") {
obj.operators = ['=', '!=', '>', '<', '>=', '<=']; obj.operators = ['=', '!=', '>', '<', '>=', '<='];
} }
if (type === "enum" || type === "boolean") {
obj.operators = ['=', '!='];
}
return obj; return obj;
}, },
isPrimitive: function(type) { isPrimitive: function(type) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment