mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 18:13:05 +02:00
include user name in search text for user stories
This commit is contained in:
parent
cd9bd8dddf
commit
b4a43db025
1 changed files with 2 additions and 2 deletions
|
@ -324,7 +324,7 @@ Window {
|
||||||
// ListModel elements will only ever have those properties that are defined by the first obj that is added.
|
// ListModel elements will only ever have those properties that are defined by the first obj that is added.
|
||||||
// So here we make sure that we have all the properties we need, regardless of whether it is a place data or user story.
|
// So here we make sure that we have all the properties we need, regardless of whether it is a place data or user story.
|
||||||
var name = optionalPlaceName || data.place_name,
|
var name = optionalPlaceName || data.place_name,
|
||||||
tags = data.tags || [data.action],
|
tags = data.tags || [data.action, data.username],
|
||||||
description = data.description || "";
|
description = data.description || "";
|
||||||
return {
|
return {
|
||||||
place_name: name,
|
place_name: name,
|
||||||
|
@ -338,7 +338,7 @@ Window {
|
||||||
description: description,
|
description: description,
|
||||||
online_users: data.online_users || 0,
|
online_users: data.online_users || 0,
|
||||||
|
|
||||||
searchText: [name].concat(tags, description).join(' ').toUpperCase()
|
searchText: [name].concat(tags, description || []).join(' ').toUpperCase()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function mapDomainPlaces(domain, cb) { // cb(error, arrayOfDomainPlaceData)
|
function mapDomainPlaces(domain, cb) { // cb(error, arrayOfDomainPlaceData)
|
||||||
|
|
Loading…
Reference in a new issue