chore: set API as studies object
This commit is contained in:
parent
f68aaf973c
commit
3d0357c9c0
@ -72,7 +72,9 @@ class ToolbarRow extends Component {
|
||||
contexts.includes(actx)
|
||||
);
|
||||
// TODO: what should `isDisabled` receive?
|
||||
const isDisabled = menuOption.isDisabled();
|
||||
// studies? activeViewport?
|
||||
// It's a bit beefy to pass studies; probably only need to be reactive on `studyInstanceUIDs` and activeViewport?
|
||||
const isDisabled = menuOption.isDisabled(this.props.studies);
|
||||
|
||||
if (hasActiveContext && !isDisabled) {
|
||||
const menuOptionEntry = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user