Skip to content
Snippets Groups Projects
Commit 803e70df authored by piotr.kupczyk@id.ethz.ch's avatar piotr.kupczyk@id.ethz.ch
Browse files

NG_UI : browser : SSDM-10193 : when filtering the browsers ignore matches with...

NG_UI : browser : SSDM-10193 : when filtering the browsers ignore matches with the top level nodes (i.e. 'Object Types', 'Collection Types' ...) which are irrelevant
parent aef916e3
No related branches found
No related tags found
No related merge requests found
......@@ -415,6 +415,7 @@ export default class BrowserController {
nodes.forEach(node => {
const nodeMatches =
node.canMatchFilter &&
node.text &&
node.text.toLowerCase().indexOf(filter.trim().toLowerCase()) !== -1
......
......@@ -51,6 +51,7 @@ export default class TypeBrowserController extends BrowserController {
id: `${typeName}s/${type.code}`,
text: type.code,
object: { type: typeName, id: type.code },
canMatchFilter: true,
canRemove: true
}
if (callback) {
......
......@@ -26,6 +26,7 @@ export default class UserBrowserController extends BrowserController {
id: `users/${user.userId}`,
text: user.userId,
object: { type: objectType.USER, id: user.userId },
canMatchFilter: true,
canRemove: true
}
})
......@@ -35,6 +36,7 @@ export default class UserBrowserController extends BrowserController {
id: `groups/${group.code}`,
text: group.code,
object: { type: objectType.USER_GROUP, id: group.code },
canMatchFilter: true,
canRemove: true
}
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment