fix(deeplinking): expand containing tag when expanding an operation (#4837)

* fix(deeplinking): expand containing tag when expanding an operation
* linter fixes
* tighten up test cases
This commit is contained in:
kyle
2018-08-27 22:58:00 -07:00
committed by GitHub
parent f51f391dcc
commit e6b7167dd8
2 changed files with 33 additions and 0 deletions

View File

@@ -77,6 +77,13 @@ export const parseDeepLinkHash = (rawHash) => ({ layoutActions, layoutSelectors,
const isShownKey = layoutSelectors.isShownKeyFromUrlHashArray(hashArray)
const [type, tagId] = isShownKey
if(type === "operations") {
// we're going to show an operation, so we need to expand the tag as well
layoutActions.show(layoutSelectors.isShownKeyFromUrlHashArray([tagId]))
}
layoutActions.show(isShownKey, true) // TODO: 'show' operation tag
layoutActions.scrollTo(isShownKey)
}