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 -