chore: set API as studies object
This commit is contained in:
1 parent
f68aaf973c
commit
3d0357c9c0
1 file changed
+3
-1
@@ -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 = {
|
||||
|
||||
Reference in new issue
Block a user