File tree 1 file changed +9
-5
lines changed
src/components/tools/windowing
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,12 @@ export default defineComponent({
39
39
}
40
40
return ' ' ;
41
41
});
42
- const isCT = computed (() => {
43
- const ctTags = [' ct' , ' ctprotocol' ];
42
+
43
+ const ctTags = [' ct' , ' ctprotocol' ];
44
+ const showCtPresets = computed (() => {
45
+ if (currentImageID .value && ! isDicomImage (currentImageID .value )) {
46
+ return true ;
47
+ }
44
48
return modality .value && ctTags .includes (modality .value .toLowerCase ());
45
49
});
46
50
@@ -107,7 +111,7 @@ export default defineComponent({
107
111
parseLabel ,
108
112
wlOptions ,
109
113
WLPresetsCT ,
110
- isCT ,
114
+ showCtPresets ,
111
115
tags ,
112
116
panel ,
113
117
WLAutoRanges ,
@@ -136,11 +140,11 @@ export default defineComponent({
136
140
</v-radio-group >
137
141
</v-expansion-panel-text >
138
142
</v-expansion-panel >
139
- <v-expansion-panel v-if =" isCT " value =" presets" >
143
+ <v-expansion-panel v-if =" showCtPresets " value =" presets" >
140
144
<v-expansion-panel-title >Presets</v-expansion-panel-title >
141
145
<v-expansion-panel-text >
142
146
<v-radio-group v-model =" wlOptions" hide-details >
143
- <template v-if =" isCT " >
147
+ <template v-if =" showCtPresets " >
144
148
<p >CT Presets</p >
145
149
<hr />
146
150
<div v-for =" (options, category) in WLPresetsCT" :key =" category" >
You can’t perform that action at this time.
0 commit comments