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]);
|
||||
|
||||
if (!expertise) return null;
|
||||
|
||||
@@ -23,6 +23,7 @@ window.config = {
|
||||
// above, the number of requests can be go a lot higher.
|
||||
prefetch: 25,
|
||||
},
|
||||
expertise: true, //* Tambahan untuk enable expertise (CustomizableViewportOverlay)
|
||||
// filterQueryParam: false,
|
||||
// defaultDataSourceName: 'dicomweb',
|
||||
defaultDataSourceName: 'local-proxy',
|
||||
|
||||
Reference in New Issue
Block a user