Skip to content

Commit

Permalink
feat(WindowLevelControls): Hide presets panel if none exist
Browse files Browse the repository at this point in the history
  • Loading branch information
bnmajor committed Oct 13, 2023
1 parent 23e3236 commit 28d0451
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/tools/windowing/WindowLevelControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default defineComponent({
const windowingStore = useWindowingStore();
const viewStore = useViewStore();
const dicomStore = useDICOMStore();
const panel = ref([1]);
const panel = ref(['auto']);
const windowingDefaults = defaultWindowLevelConfig();
// Get the relevant view ids
Expand Down Expand Up @@ -156,8 +156,8 @@ export default defineComponent({
<v-card dark>
<v-card-text>
<v-expansion-panels v-model="panel" multiple>
<v-expansion-panel :disabled="!isCT && !tags.length">
<v-expansion-panel-title>Presets & Tags</v-expansion-panel-title>
<v-expansion-panel v-if="isCT">
<v-expansion-panel-title>Presets</v-expansion-panel-title>
<v-expansion-panel-text>
<v-radio-group v-model="wlOptions" hide-details>
<template v-if="isCT">
Expand All @@ -178,7 +178,7 @@ export default defineComponent({
</v-radio-group>
</v-expansion-panel-text>
</v-expansion-panel>
<v-expansion-panel>
<v-expansion-panel value="auto">
<v-expansion-panel-title>Auto Window/Level</v-expansion-panel-title>
<v-expansion-panel-text>
<v-radio-group v-model="wlOptions" hide-details>
Expand Down

0 comments on commit 28d0451

Please sign in to comment.