fix(typescript): rename services to fix typescript (#3165)

* fix: Rename services to lower camel case, hp, measure

* fix: Rename DisplaySetService instances to displaySetService

* fix: Rename CornerstoneViewportService to lower camel case

* fix: Added lower case segmentationService rename

* rename other services (#3166)

* rename uiDialogService

* rename toolGroupService

* rename uiNotificationService

* rename viewportGridService

* rename syncGroupService

* rename CornerstoneCacheService

* Fix a syntax error in hotkeys

* Fix a couple of rename issues that were missed

---------

Co-authored-by: Alireza <ar.sedghi@gmail.com>
This commit is contained in:
Bill WallaceandAlireza authored and GitHub committed 2023-02-10 16:46:09 -05:00
1 parent a97fb2fc9a
commit 8af0362d12
97 files changed
+934 -908

No files matched your search

@@ -17,11 +17,11 @@ async function createReportAsync(
options
) {
const {
DisplaySetService,
UINotificationService,
UIDialogService,
displaySetService,
uiNotificationService,
uiDialogService,
} = servicesManager.services;
const loadingDialogId = UIDialogService.create({
const loadingDialogId = uiDialogService.create({
showOverlay: true,
isDraggable: false,
centralize: true,
@@ -46,9 +46,9 @@ async function createReportAsync(
// automatically calls makeDisplaySets
DicomMetadataStore.addInstances([naturalizedReport], true);
const displaySetInstanceUID = DisplaySetService.getMostRecentDisplaySet();
const displaySetInstanceUID = displaySetService.getMostRecentDisplaySet();
UINotificationService.show({
uiNotificationService.show({
title: 'Create Report',
message: 'Measurements saved successfully',
type: 'success',
@@ -56,13 +56,13 @@ async function createReportAsync(
return [displaySetInstanceUID];
} catch (error) {
UINotificationService.show({
uiNotificationService.show({
title: 'Create Report',
message: error.message || 'Failed to store measurements',
type: 'error',
});
} finally {
UIDialogService.dismiss({ id: loadingDialogId });
uiDialogService.dismiss({ id: loadingDialogId });
}
}