未验证 提交 54f82df3 编写于 作者: G geraldglynn 提交者: GitHub

improvement: add isShownKey prop to Operation to allow overriding (#5196)

* Added optional isShownKey prop to Componenent to allow overriding

* Removed unneccasry  before is isShwonKey

* Added PropTypes to isShownKey

* Added isShownKey to <OperationWrapper/> and removed it from <Operation />

* Removed isShwonKey prop it from <Operation />

* revert package-lock.json
Co-authored-by: Nkyle shockey <kyleshockey@gmail.com>
上级 a2b37ec1
......@@ -10,7 +10,8 @@ const Wrapper = (Ori, system) => class OperationWrapper extends React.Component
onLoad = (ref) => {
const { operation } = this.props
const { tag, operationId } = operation.toObject()
const isShownKey = ["operations", tag, operationId]
let { isShownKey } = operation.toObject()
isShownKey = isShownKey || ["operations", tag, operationId]
system.layoutActions.readyToScroll(isShownKey, ref)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册