stash
This commit is contained in:
parent
3cd9200d87
commit
e88dc898b3
18 changed files with 298 additions and 84 deletions
|
|
@ -101,8 +101,8 @@ function classifyScanText(text) {
|
|||
const [, handle, kindLetter, id] = ownerMatch;
|
||||
const kind = kindLetter === "s" ? "storage_location" : "item";
|
||||
const to = kind === "storage_location"
|
||||
? `/storage-locations/${encodeHandleForUrl(handle)}/${id}`
|
||||
: `/inventory/${encodeHandleForUrl(handle)}/${id}`;
|
||||
? {name: 'locations-detail', params: {handle: encodeHandleForUrl(handle), id}}
|
||||
: {name: 'inventory-detail', params: {handle: encodeHandleForUrl(handle), id}};
|
||||
return {to, ownerQualifiedId: {handle, kind, id}};
|
||||
}
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue