stash
This commit is contained in:
parent
8d96bc97c4
commit
ed04d98bf1
54 changed files with 661 additions and 1214 deletions
|
|
@ -107,9 +107,9 @@ export default {
|
|||
return files.filter(file => file.mime_type.startsWith("image/"));
|
||||
},
|
||||
loadResults() {
|
||||
// Search results are always personal-or-friend (see inventory_items() in
|
||||
// toolshed/api/inventory.py - it never yields a group's items), so the owner is
|
||||
// always a plain user handle - one route shape, no owner-is-me special case.
|
||||
// Search results are always personal-or-friend (inventory_items() in
|
||||
// toolshed/api/inventory.py never yields group items), so owner is always a plain
|
||||
// user handle - one route shape, no owner-is-me special case.
|
||||
this.fetchSearchResults({query: this.query}).then((results) => {
|
||||
this.search_results = results.map(e => (
|
||||
{...e, route: `/inventory/${encodeHandleForUrl(e.owner)}/${e.id}`}))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue