From b417de4827e03c3ec66a39f6bf41bdc2371359e1 Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Mon, 18 Nov 2024 09:09:20 -0500 Subject: [PATCH] feat(WindowLevelControls): show CT presets for images --- .../tools/windowing/WindowLevelControls.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/tools/windowing/WindowLevelControls.vue b/src/components/tools/windowing/WindowLevelControls.vue index 57997e0e..e5172421 100644 --- a/src/components/tools/windowing/WindowLevelControls.vue +++ b/src/components/tools/windowing/WindowLevelControls.vue @@ -39,8 +39,12 @@ export default defineComponent({ } return ''; }); - const isCT = computed(() => { - const ctTags = ['ct', 'ctprotocol']; + + const ctTags = ['ct', 'ctprotocol']; + const showCtPresets = computed(() => { + if (currentImageID.value && !isDicomImage(currentImageID.value)) { + return true; + } return modality.value && ctTags.includes(modality.value.toLowerCase()); }); @@ -107,7 +111,7 @@ export default defineComponent({ parseLabel, wlOptions, WLPresetsCT, - isCT, + showCtPresets, tags, panel, WLAutoRanges, @@ -136,11 +140,11 @@ export default defineComponent({ - + Presets -