fix(typescript): Missed renames UIModalService and UserAuthenticationService (#3171)
This commit is contained in:
1 parent
8af0362d12
commit
ecfdc9a687
11 files changed
+41
-39
No files matched your search
@@ -196,15 +196,15 @@ const commandsModule = ({ servicesManager }) => {
|
||||
},
|
||||
showDownloadViewportModal: () => {
|
||||
const { activeViewportIndex } = viewportGridService.getState();
|
||||
const { UIModalService } = servicesManager.services;
|
||||
const { uiModalService } = servicesManager.services;
|
||||
|
||||
if (UIModalService) {
|
||||
UIModalService.show({
|
||||
if (uiModalService) {
|
||||
uiModalService.show({
|
||||
content: CornerstoneViewportDownloadForm,
|
||||
title: 'Download High Quality Image',
|
||||
contentProps: {
|
||||
activeViewportIndex,
|
||||
onClose: UIModalService.hide,
|
||||
onClose: uiModalService.hide,
|
||||
cornerstoneViewportService,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -62,11 +62,11 @@ export default async function init({
|
||||
);
|
||||
|
||||
const {
|
||||
UserAuthenticationService,
|
||||
userAuthenticationService,
|
||||
measurementService,
|
||||
displaySetService,
|
||||
uiDialogService,
|
||||
UIModalService,
|
||||
uiModalService,
|
||||
uiNotificationService,
|
||||
cineService,
|
||||
cornerstoneViewportService,
|
||||
@@ -87,7 +87,7 @@ export default async function init({
|
||||
}
|
||||
|
||||
if (cornerstone.getShouldUseCPURendering()) {
|
||||
_showCPURenderingModal(UIModalService, hangingProtocolService);
|
||||
_showCPURenderingModal(uiModalService, hangingProtocolService);
|
||||
}
|
||||
|
||||
const labelmapRepresentation =
|
||||
@@ -128,7 +128,7 @@ export default async function init({
|
||||
prefetch: appConfig?.maxNumRequests?.prefetch || 10,
|
||||
};
|
||||
|
||||
initWADOImageLoader(UserAuthenticationService, appConfig);
|
||||
initWADOImageLoader(userAuthenticationService, appConfig);
|
||||
|
||||
/* Measurement Service */
|
||||
const measurementServiceSource = connectToolsToMeasurementService(
|
||||
@@ -403,10 +403,10 @@ function CPUModal() {
|
||||
);
|
||||
}
|
||||
|
||||
function _showCPURenderingModal(UIModalService, hangingProtocolService) {
|
||||
function _showCPURenderingModal(uiModalService, hangingProtocolService) {
|
||||
const callback = progress => {
|
||||
if (progress === 100) {
|
||||
UIModalService.show({
|
||||
uiModalService.show({
|
||||
content: CPUModal,
|
||||
title: 'OHIF Fell Back to CPU Rendering',
|
||||
});
|
||||
|
||||
@@ -34,7 +34,7 @@ function initWebWorkers(appConfig) {
|
||||
}
|
||||
|
||||
export default function initWADOImageLoader(
|
||||
UserAuthenticationService,
|
||||
userAuthenticationService,
|
||||
appConfig
|
||||
) {
|
||||
cornerstoneWADOImageLoader.external.cornerstone = cornerstone;
|
||||
@@ -55,7 +55,7 @@ export default function initWADOImageLoader(
|
||||
convertFloatPixelDataToInt: false,
|
||||
},
|
||||
beforeSend: function(xhr) {
|
||||
const headers = UserAuthenticationService.getAuthorizationHeader();
|
||||
const headers = userAuthenticationService.getAuthorizationHeader();
|
||||
|
||||
// Request:
|
||||
// JPEG-LS Lossless (1.2.840.10008.1.2.4.80) if available, otherwise accept
|
||||
|
||||
+2
-2
@@ -157,8 +157,8 @@ class CornerstoneCacheService {
|
||||
// getSOPClassHandler method
|
||||
|
||||
if (displaySet.load && displaySet.load instanceof Function) {
|
||||
const { UserAuthenticationService } = this.servicesManager.services;
|
||||
const headers = UserAuthenticationService.getAuthorizationHeader();
|
||||
const { userAuthenticationService } = this.servicesManager.services;
|
||||
const headers = userAuthenticationService.getAuthorizationHeader();
|
||||
await displaySet.load({ headers });
|
||||
|
||||
volumeData.push({
|
||||
|
||||
Reference in new issue
Block a user