add config expertise enabler
This commit is contained in:
@@ -553,7 +553,13 @@ function ExpertiseOverlayItem({ displaySetProps, customization }: OverlayItemPro
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
fetchExpertise();
|
// Get the expertise config value
|
||||||
|
const config = window.config || {};
|
||||||
|
|
||||||
|
// Only fetch expertise if the config value is true
|
||||||
|
if (config.expertise === true) {
|
||||||
|
fetchExpertise();
|
||||||
|
}
|
||||||
}, [referenceInstance]);
|
}, [referenceInstance]);
|
||||||
|
|
||||||
if (!expertise) return null;
|
if (!expertise) return null;
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ window.config = {
|
|||||||
// above, the number of requests can be go a lot higher.
|
// above, the number of requests can be go a lot higher.
|
||||||
prefetch: 25,
|
prefetch: 25,
|
||||||
},
|
},
|
||||||
|
expertise: true, //* Tambahan untuk enable expertise (CustomizableViewportOverlay)
|
||||||
// filterQueryParam: false,
|
// filterQueryParam: false,
|
||||||
// defaultDataSourceName: 'dicomweb',
|
// defaultDataSourceName: 'dicomweb',
|
||||||
defaultDataSourceName: 'local-proxy',
|
defaultDataSourceName: 'local-proxy',
|
||||||
|
|||||||
Reference in New Issue
Block a user