feat(pluginevents): add dispatching event onsearch on map click (MIN-296)
1 unresolved thread
1 unresolved thread
Piotr reported that clicking on the map should also trigger the onSearch
listener.
Data to dispatch:
If type Alias:
- type:
'bioEntity'
- searchResults schema:
[{ "id": 18904, "modelId": 52, "type": "ALIAS" }]
- results schema:
[bioEntityContents]
If type Reaction:
- type:
'bioEntity'
- searchResults schema:
[{ "id": 18904, "modelId": 52, "type": "REACTION" }]
- results schema:
[bioEntityContents]
Closes MIN-296
Edited by mateusz-winiarczyk
Merge request reports
Activity
Filter activity
assigned to @mateusz-winiarczyk
16 17 isPerfectMatch: true 17 18 }), 18 19 ) 19 .unwrap().then(() => { 20 .unwrap().then((bioEntityContents) => { 21 22 PluginsEventBus.dispatchEvent('onSearch', { 23 type: 'bioEntity', 24 searchValues: [closestSearchResult], 25 results: [bioEntityContents], 26 }); mentioned in commit a4563456
mentioned in commit 525ba2b3
mentioned in merge request !149 (closed)
Please register or sign in to reply